I would like to output the day of the week, the date, and the time.
This works exactly as I want for the date and the time . . .
Code: Select all
echo Created: %date% at %time:~0,2%:%time:~3,2%:%time:~6,2%
Code: Select all
Set daysofweek=Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
For /f "Tokens=2-4 Delims=," %%a In ('WMIC Path Win32_LocalTime Get DayOfWeek /Format:csv') Do Set daynumber=%%a
For /f "Tokens=%daynumber% Delims=," %%b In ("%daysofweek%") Do Set day=%%b
echo Created: %day% the %date:~0,3% %date% at %time:~0,2%:%time:~3,2%:%time:~6,2%
Thanks in advance.