I have a batch file that adjusts the level in the audio portion of a a video file. It has commands which use the '%1' variable in its scripting.
How do I get the batch file to automatically perform its commands against all files in a specified folder rather than execute the batch file against each individual file? Would it be necessary to create a second batch file to execute the first one on each file in the folder?
Any help would be appreciated.
John
Run Batch File on All Files in a Folder
Moderator: DosItHelp
Re: Run Batch File on All Files in a Folder
Code: Select all
@echo off
PUSHD "C:\path to video folder\"
FOR %%G IN (*.*) DO "C:\Path\CONVERTER.exe" "%%~G"
Re: Run Batch File on All Files in a Folder
Thanks, Squashman. Works perfectly.