say I want to run in 25 times but the next time it needs to only run 10 times. can the batch files prompt me for that variable?
Command Prompt Help
Started by
mike760534211
, Oct 03 2013 08:48 AM
#1
Posted 03 October 2013 - 08:48 AM
say I want to run in 25 times but the next time it needs to only run 10 times. can the batch files prompt me for that variable?
#2
Posted 03 October 2013 - 12:07 PM
Hi Mike
One way to do it:
One way to do it:
@echo off SETLOCAL ENABLEEXTENSIONS set /P N= Repeat times? for /L %%i IN (1,1,%N%) do ( echo -- step %%i -- echo Command1 echo Command2 echo --- )
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users