Batch - removing the path from %1
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
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:
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
Any help greatly appreciated.