Question : batch script loop
Answered by : thoughtless-tapir-zmhudsnoeyy5
// batch for loop
for /l %%x in (1, 1, 100) do ( echo %%x copy %%x.txt z:\whatever\etc
)
Source : https://stackoverflow.com/questions/2591758/batch-script-loop | Last Update : Mon, 09 Nov 20
Question : batch loop with prompt
Answered by : richard-lievesley
@echo off
:main :: Put all your code here under the "main" sub-routine echo EXECUTED MAIN goto rerun_prompt
:rerun_prompt ECHO Re-run the script? [Y/N]: SET /p choice= IF /I %choice% == Y goto main IF /I %choice% == N ( echo Exiting... EXIT ) ECHO "%choice%" is not valid, try again goto rerun_prompt
Source : | Last Update : Wed, 14 Sep 22
Question : batch script loop
Answered by : thoughtless-tapir-zmhudsnoeyy5
for /l %x in (1, 1, 100) do ( echo %x copy %x.txt z:\whatever\etc
)
Source : https://stackoverflow.com/questions/2591758/batch-script-loop | Last Update : Mon, 09 Nov 20
Question : batch for loop
Answered by : clear-cat-nf89is0h1b9c
for /l %%x in (1, 1, 100) do ( echo %%x
)
Source : | Last Update : Wed, 12 Jan 22