Fihop
Fihop

Reputation: 3177

How can I write a .bat file that will run same .exe file multiple times

I'd like to write a .bat file that can run same .exe file multiple times with different input files.

Does anyone know how to implement this task? What kind of commands should I use?

Upvotes: 1

Views: 1052

Answers (1)

Oleg
Oleg

Reputation: 222017

Example:

FOR %v IN (c:\Users\public\videos\*.avi) DO my.exe %v

For more information just type

for /?

Upvotes: 2

Related Questions