Discussion Locked
shell script date
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I use the current (system)date as a variable in a NT shell script?
Windows Forum
by worldofzeus
try the following: -
for /f "tokens=2" %%7 in ('date /t') do set DATE_DAY=%%7
for /f %%7 in ('echo %date_day:/=%') do set DATE_DAY=%%7
Hope it helps
Zeus
This discussion is closed to new replies.
Sort by Trending