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
Flag duplicate record
Exchange 2010 inbound attachment size limit
How to configure SSG-140 with multiply public IP's on single interface.
vfp grid number format with commas set decimals
Software that checks Feeds daily and downloads files linked within the feed
Looking for a CMS solution
How do I set up a link to a specific page within a wordpress template?
IM integration with Sharepoint 2010
Getting One Row from a ListBox List
Filtering the SSRS report based on multivalue multiple parameters passed to stored procedure