Search found 2 matches

by empireapathy
10 Jun 2011 14:13
Forum: DOS Batch Forum
Topic: Issue with IF statement
Replies: 2
Views: 3276

Re: Issue with IF statement

allal wrote:

Code: Select all

FOR /f %%a in ('date /t') do set "dow=%%~a"
if "%dow%"=="Sat" (goto SAT) else goto END



This worked perfect. I just needed to throw the parentheses around goto SAT and it worked perfect. Thanks!
by empireapathy
10 Jun 2011 10:50
Forum: DOS Batch Forum
Topic: Issue with IF statement
Replies: 2
Views: 3276

Issue with IF statement

Hi. I'm new to working with Batch files and I seem to be having an issue with this If statement. This is a pretty basic backup script but the idea is I want to do a full backup mirroring a directory every day and then save a unique version of the database files every Saturday. No matter what %dow% i...