Microsoft
Software
Hardware
Network
Question : Windows Batch - Find Day of Week
Hi,
I have the below batch script to create the 'DOW' variable. However when I run it, it's choking on the 4th lineon the 'Command' part. Not sure what is wrong. Any help? Prefer to keep this Windows Batch. Running on Win Server 2003 R2.
REM Set the Day of Week (DOW) Variable
:: setDOW.bat
@echo off
Echo.|Command /C Date>DOW
set /p today=<DOW
set DOW=%today:~16,3%
echo DOW=%DOW%
:: DONE
Answer : Windows Batch - Find Day of Week
In a BAT file, this is all you should need:
@echo off
for /F "tokens=1" %%A in ("%DATE%") do set DOW=%%A
~bp
Random Solutions
which is the best editor for oracle ?
Open file Security Message
A_POLICY_VIOLATED_FILE_WAS
_DETECTED_
AND_REMOVE
D
Date Formula deducting today's date from date field
how to load ipt_REDIRECT.ko
How to get an USB speaker to work with Eee PC 900 Xandros Linux
Exchange ActiveSync Calendar Issue
Additional Domian Controler having windows 2008
How to register nameserver
How to alter web page so Google Chrome will clear old data?