Code: Select all
@echo off
mkdir aac
for %%f in (*.m4a) do mp4box -raw 1 "%%f" -out "aac\%%f.aac"
It works fine, except for the fact that it applies the conversion command to ALL files with the .m4a extension in the current folder.
I am running the batch file from a context menu in Windows Explorer. I right-click on the file that I want to convert and select the menu item (that I created) to trigger the batch file. Therefore I only want the batch command to apply to file that I right-clicked on, and not to have the conversion applied to any other files at all.
How can I alter the above batch file so that it only applies to the one file that I right-clicked on, and leaves all the other files alone?
Thanks very much.