This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @ECHO OFF | |
| :: Check WMIC is available | |
| WMIC.EXE Alias /? >NUL 2>&1 || GOTO s_error | |
| :: Use WMIC to retrieve date and time | |
| FOR /F "skip=1 tokens=1-6" %%G IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO ( | |
| IF "%%~L"=="" goto s_done | |
| Set _yyyy=%%L | |
| Set _mm=00%%J | |
| Set _dd=00%%G |