Search found 5 matches

by BuckeyeDave
25 Aug 2009 10:00
Forum: DOS Batch Forum
Topic: Passing variables/arguments between programs
Replies: 6
Views: 8279

Looks like it works!

THANKS!
by BuckeyeDave
14 Aug 2009 07:02
Forum: DOS Batch Forum
Topic: Passing variables/arguments between programs
Replies: 6
Views: 8279

I realized I had "set errorlevel=4" rem'ed out, so I fixed that & ran it with this code: setlocal enabledelayedexpansion set errorlevel=4 if %errorlevel% == 4 ( set rerun=1 echo !rerun! echo Scanstate failed. Restarting scan. rem del c:\_Deployment\Backup\* /s Call "C:\_Deployment...
by BuckeyeDave
13 Aug 2009 15:17
Forum: DOS Batch Forum
Topic: Passing variables/arguments between programs
Replies: 6
Views: 8279

Ok, here's the new code: rem set errorlevel=4 setlocal enabledelayedexpansion if %errorlevel% == 4 ( set rerun=1 echo !rerun! echo Scanstate failed. Restarting scan. rem del c:\_Deployment\Backup\* /s Call "C:\_Deployment\Backup.cmd" !rerun! %continue% rem Start "" /b /wait "...
by BuckeyeDave
13 Aug 2009 15:07
Forum: DOS Batch Forum
Topic: Passing variables/arguments between programs
Replies: 6
Views: 8279

I'll give it a try.

THANKS!
by BuckeyeDave
13 Aug 2009 09:07
Forum: DOS Batch Forum
Topic: Passing variables/arguments between programs
Replies: 6
Views: 8279

Passing variables/arguments between programs

I am new to DOS/CMD programming. I am writing a script to automate the backing up of certain user files and the user state. That script calls this one, called "scanstate.cmd". I am introducing 2 new variables: "rerun" is used to check to make sure that scanstate.exe ran without e...