Script to find what day of the week number is currently.

FOR /F "skip=1" %%A IN ('WMIC Path Win32_LocalTime Get DayOfWeek' ) DO (
  set DOW=%%A
  goto Break
)

: Break
echo %DOW%

Categorized in:

Batch,

Last Update: May 18, 2024