M
M Bourgon
Very basic, newbie batch question.
I am creating a batch file for Windows that will take the file dropped
upon it (the %1), and get the actual filename without the extension.
What I'm trying to run is ffmpeg, setting the output file to be a
different folder & filename than the input. So it would be something
like:
ffmpeg -i "%1" -f mp4 -title "HereIWantTheBaseFilename" -vcodec copy -
acodec copy "D:\holding_area\HereIWantTheBaseFilename.mp4"
So when I drop the file on it, which would invoke:
test.bat c:\my\stuff\test.avi
Once done, I'd wind up with file D:\holding_area\test.mp4
I know how I'd do it in SQL (REVERSE the variable, find the first
backslash, do the same to figure out where the "." is, SUBSTRING it to
a variable, and voila), but I have no idea where to start with a batch
file.
Any help greatly appreciated.
I am creating a batch file for Windows that will take the file dropped
upon it (the %1), and get the actual filename without the extension.
What I'm trying to run is ffmpeg, setting the output file to be a
different folder & filename than the input. So it would be something
like:
ffmpeg -i "%1" -f mp4 -title "HereIWantTheBaseFilename" -vcodec copy -
acodec copy "D:\holding_area\HereIWantTheBaseFilename.mp4"
So when I drop the file on it, which would invoke:
test.bat c:\my\stuff\test.avi
Once done, I'd wind up with file D:\holding_area\test.mp4
I know how I'd do it in SQL (REVERSE the variable, find the first
backslash, do the same to figure out where the "." is, SUBSTRING it to
a variable, and voila), but I have no idea where to start with a batch
file.
Any help greatly appreciated.