I need to create a batch file that will pass the name of each folder in a given folder, in turn, as a switch for another command line app.
I have a folder called WORKING which has lots of folders. We need to run a command line app against each of these folders such as....
myapp.exe -action1 -patch = c:\working\folder1
myapp.exe -action1 -patch = c:\working\folder2
the c:\working folder may have 100 folders in it of various names and each one needs to be inserted as a switch to the myapp line above and then that line actioned.
Does that make sense?
I can get the list of folders without all the DIR bumpf that goes with a usual DIR listing but then I'm struggling (as ever) on the loop to pass each folder to the command line above.