Looping through a directory and passing a filename to a application
Posted on 2013-06-28
I have a directory full of files and I need to pass their filename to an application in Command Prompt, how could I accomplish this? I seen forfile used, but can't get the syntax down, any help would be appreciated.
The application's syntax looks like C:\Myfolder\myapp.exe s:C:\locationoffile\myfile.xml
Where the switch for s: should be the path for each file.