Batch file scripting
My Application.exe takes a filename as a parame开发者_开发知识库ter.
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
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.
精彩评论