Re: Multiple commands in batch file loop
this newsgroup is about powershell, not batch, but I'll answer anyway.
You don't need to use a separate batchfile, you can do that in the same
batch by using ( and ) like this:
For %%f in (*.txt) do (
"Gordon Bell" <firstname.lastname@example.org> wrote in message
> Create a secondary batch file that processes each file and call it like
> for %f in (*.txt) do call process.bat %f
> @Echo Off
> Command1.exe %1
> Command2.exe %1
> mrgou wrote:
>> In a batch file, is it possible to execute more than one command for
>> each iteration of a FOR loop (i.e. more than one command for each file
>> of the set)?