1.

Solve : batch file to run an application through all files in a folder?

Answer» HI,

I am starting my first batch file and I am stuck with the for loop. I am trying to write a batch file to run an audio application that does some statistical analysis through all wave FILES in a folder . I have the syntax of FOR loop but I am not ABLE to figure out how to run an executable through all files in a folder.. Can somebody please help me out ...

Thanksfor %a in (*.*) do MyApplicationName %a

if you do this in a batch file, you need to double-up the % symbols, thus:
for %%a in (*.*) do MyApplicationName %%a

Graham
Yes or:

Quote
@echo off
cd FOLDER NAME HERE ! !
for /F "usebackq delims=" %%I in ("*.wav") do APPNAME other app commands... %%~nxI

That will only work of course if the executable supports being passed a file like that.

I used "" incase the filenames have spaces, I THINK that is required?


Discussion

No Comment Found