How can I determine the (ISO 8601) week number in a Windows batch file?
Unfortunately WMIC PATH WIN32_LOCALTIME GET /FORMAT:LIST only has WeekInMont
WMIC PATH WIN32_LOCALTIME GET /FORMAT:LIST
Try this in a batch file:
@For /F %%I In ('PowerShell Get-Date -UFormat %%V') Do @Echo(%%I @Timeout -1
or in the command prompt window:
For /F %I In ('PowerShell Get-Date -UFormat %V') Do @Echo(%I