I’m trying to pass files one by one(I have to dot that since executable only accepts one file at a time). So, in my batch I have follwoing:
FOR /F %file IN ('dir /b /s *.css') DO CALL myExecutable.exe %file
I should see out files in same directory but nothing happens, no errors are displayed either.
Am I missing something here?
You have several mistakes in your example:
FORparameter name is a single letter onlyCALLis used to call another batch file or a subroutine in the existing batch file, not executablesFORparameter should be referenced with two %, when in batch fileWith these in mind, here’s the right command you should be using:
Here’s my answer to a similar SO question, where I give more details on using
FORto process all files in a directory.