Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch File Counter Increment
Name: zrm0008 Date: September 10, 2008 at 11:02:40 Pacific OS: XP CPU/Ram: 1.7 ghz/2 gig Product: IBM
Comment:
Is it possible to increasement an integer counter in a batch file script? Example:
Set Sleep=0 :Rerun osql ... if %ERRORLEVEL%==0 goto :Cont Set Sleep=%Sleep%+1 if %Sleep%==3 goto :ErrorOut goto :Rerun :ErrorOut exit %ERRORLEVEL% :Cont ...
Basically, I need to run a SQL Server Stored Procedure until it successfully runs before I want the script to error out. Currently, the result for %SLEEP% will be '0+1' after the code above runs, not 1. Can anyone help?
Summary: Well, this is my first question in these forums. I'm kind of new to batches, and now I need a batch file to solve a problem I have. Maybe someone here can help point me in the right direction. I hav...
Summary: I am renaming a bunch of .pdf files and I'm having a hard time adding a counter after renaming. Here is what I have so far for my batch file--- rename \Company\DM\MC\Backup\09_08_20\*.*pdf MC_%YY_MM_D...
Summary: I need a batch file to loop through a list of jpgs in a folder, & move them to folders created based on their file names in the following convention: The folder names will be based on the first 8 char...