1.

Solve : can batch file return day of the week??

Answer»

I'm TRYING to WRITE a batch file that opens, LET say notepad.exe on Sunday @ 17:00.

I know you can get and set the TIME using batch file but can you get the day of the week using batch file?

thanksnever mind, my colegue figure it out.

you use, "date"If you want more specified parts of the day, like the month, day or YEAR, then use SET:
(If your time format isnt like MM\DD\YYYY, then this won't work)

Code: [Select]@echo off
set month=%Date:~4,2%
set day=%Date:~7,2%
set year=%10,4%



Discussion

No Comment Found