Batch - run same command depending on the output -
i have windows batch knows process 100 files @ time , move them somewhere after processing. (cannot modified)
if process unable find more files return "no more files"
if process able process return "process ok"
i want run process using different batch file continually on folder large amount of files
how read , compare value first batch determine if need run same command again?
should use goto or while loop in case?
do first batch while (first batch output != 'no more files')
:do rem first batch /f "delims=" %%a in ('firstbatch.bat') set output=%%a rem while (first batch output != 'no more files') if "%output%" neq "no more files" goto
Comments
Post a Comment