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 loop with counter
Name: ryanpete Date: April 2, 2007 at 12:03:04 Pacific OS: Xp Sp2 CPU/Ram: 2.99/512 Product: Dell/Optiplex GX520
Comment:
I need to create a bat that asks user "how many time do you want to run" then it executes :loop that many times, I tried this but I can't find away to add 1 to %count% each time it loops, any help would be great!! Thanks,
@ECHO OFF ECHO HOW MANY set/p Counter= set count=0 CLS if %counter%==%count% GOTO PWD_END :loop echo test pause goto loop
Summary: Hi! I would like to read file contents from a text file and display it using a batch loop. I had try this method but it seem like did not work. for /F "delims=" %%a in ("fileL.txt") do ( @echo %%a ) ...
Summary: I want to be able to perform something to each file of certain type inside a folder. I have this script from something else I've done. for /f "tokens=*" %%x in ('dir /b *.ext') do ( something ) That l...
Summary: I want to make a batch file which creates a certain ammount of text files without copying and pasting code. That is, I want to make it perform the action once, then loop the code x times. X could be 1...