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.
Incrementing a numeric value in a batch file
Name: Greg Date: February 14, 2001 at 08:44:28 Pacific
Comment:
Hi,
All,
This should be a simple exercise, but I can't seem to figure it out. I'm creating a DOS batch file to run under Win9x and am trying to increment a counter variable (Qnum) sequentially in response to a receiving a carriage return.
Batch code: set Qnum = 0 if %ANS% == "" goto SeqQ set Qnum=%ANS% goto NextQ :SeqQ set Qnumt=%Qnum% set Qnum=%Qnumt%+1 echo %Qnum%
Summary: This is ffxifanatic, but i forgot my password and im at schol...lol just wondering why in windows 98 when i use my choice command i can never set the users input into %1. They have 5 choices, and they...
Summary: hi: I want to write a batch file so that the following info is put into a text file: user name computer name log in date as each new user logs onto my network, the above info is put into the text file...
Summary: To Delete a dir and all contents ... deltree [drive:/path/dirtobedeleted] So you woulden't want to type something like c:>deltree c:\windows ;-) -------------------------------- To format a MASTER dri...