mattypenny.net
Get day of week number in command
This is a slight tweak to code at: FOR /F “skip=1” %%A IN (‘WMIC Path Win32_LocalTime Get DayOfWeek’ ) DO ( if %%A GEQ 1 set DOW=%%A ) echo %DOW%