Batch FOR loop

July 23, 2010 at 05:48:10
Specs: Windows Vista
Hello, I first user for batch in windows 7. I would like to make batch command which can.... after when I run program, it makes many files. and then I have to send these files to some program each by each. So... I want make batch this send process.

Sometimes first program makes 10 files and 20 files. So it is random. So depens on how many file they make, the range of for loop has to be changed. How to make this batch??

For reference, my batch file is..
@echo off
FOR /l %%X in (1,1,number) do C:\Programme\ktzu\DEF\v2\2D\DEF.EXE

number has to be changed depends on the number of files.
Thanks a lot!!!!

See More: Batch FOR loop

Report •

July 23, 2010 at 06:45:47
Why are you using 'FOR /L...'? Surely you should be using

for %%f in ("c:\some dir\*") do program.exe "%%f"

or something like that.

Report •
Related Solutions

Ask Question