Running a load of batch files in group of folders ?

G

Gerry Rigney

Hi all

I've a few hundred folders all contained within one folder
"Results" each folder has a stack of txt files, an exe
that converts each txt file to csv and a batch files that
runs the exe against all the text files. Question

is there a command I can run that will simply scan through
all the sub folders and start any batch files it encounters ?

I've tried "start /s *.bat" but to no avail (wishful
thinking that it could be that easy!)

I look forward to any responses and appreciate any
assistance given

Cheers
Gerry R
 
P

Phil Robyn

Gerry said:
Hi all

I've a few hundred folders all contained within one folder
"Results" each folder has a stack of txt files, an exe
that converts each txt file to csv and a batch files that
runs the exe against all the text files. Question

is there a command I can run that will simply scan through
all the sub folders and start any batch files it encounters ?

I've tried "start /s *.bat" but to no avail (wishful
thinking that it could be that easy!)

I look forward to any responses and appreciate any
assistance given

Cheers
Gerry R

What if there's more than one batch file? Should they
all run at the same time? :)
 
J

Jerold Schulman

Hi all

I've a few hundred folders all contained within one folder
"Results" each folder has a stack of txt files, an exe
that converts each txt file to csv and a batch files that
runs the exe against all the text files. Question

is there a command I can run that will simply scan through
all the sub folders and start any batch files it encounters ?

I've tried "start /s *.bat" but to no avail (wishful
thinking that it could be that easy!)

I look forward to any responses and appreciate any
assistance given

Cheers
Gerry R

See tip 5645 in the 'Tips & Tricks' at http://www.jsiinc.com



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
G

Gerry Rigney

There is one batch file in each folder, this runs the exe
file once for every txt file in the folder (about 20 txt
files in each folder) Idealily it would run the first
folder first and the next one once the first one had
finished but if it just ran through each folder at once and
kicked off all the batch files that would be ok.

Any ideas ? Cheers for the reply again
Gerry

=================== batch file ===============
marklar project97.txt project97.csv
marklar h_adm.txt h_adm.csv
marklar i_int.txt i_int.csv
marklar inter.txt inter.csv
marklar j_mar.txt j_mar.csv
marklar m_msc.txt m_msc.csv
marklar marke.txt marke.csv
marklar mscad.txt mscad.csv
marklar n.txt n.csv
marklar n_mscad2.txt n_mscad2.csv
marklar p_pro.txt p_pro.csv
marklar proje.txt proje.csv
marklar project00.txt project00.csv
marklar project01.txt project01.csv
marklar project02.txt project02.csv
marklar project03.txt project03.csv
marklar project96.txt project96.csv
marklar admin.txt admin.csv
marklar project98.txt project98.csv
marklar project99.txt project99.csv
=================== batch file ===============
 
G

Gerry Rigney

Thanks for that Jerold. Will give it a shot. It look like
it can do what I need.

Thanks again
Gerry R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top