van
van

Reputation: 9449

Batch file scripting

My Application.exe takes a filename as a parameter.

I would like to write a windows batch file script that does the following:

Lets me point to a folderpath and does the following:

 for int = 0 ; i<folderpath.filecount();i++
{
  Application.exe filename[i]
}

Many Thanks

Upvotes: 1

Views: 188

Answers (1)

evil otto
evil otto

Reputation: 10582

use the for command. For example (FIXED)

for %%i in (%1\*) do Application.exe "%%i"

see help for for lots of extra useful options and syntax.

Upvotes: 2

Related Questions