I have a batch file to take DB backup, scheduled to run at a selected time everyday. But I don't want to run the same on weekends or say on selected days. On my server, %DATE%
returns 07/08/2013. So doing %DATE:~0,3%
returns 07/
instead of day.
Is there a way to return day and then using an if-else, I can guide the program to flow as per the requirement.
My server runs Windows server 2003.