Sorry, the title isn't very descriptive, but I couldn't think of a better one.
I use this script to drag and drop video + audio file, and combine them with ffmpeg.
ffmpeg -i "%~1" -i "%~2" -c copy "C:\New Folder\%~n1".mp4
It works great, but the input, and subsequently output files have ".raw" ending before the extension. Is there an easy way remove the last 4 characters of %~n1 or replace ".raw" with ""? I want to manipulate the string before assigning it as file name with ffmpeg, I don't want to output the file with .raw.mp4 ending, and then rename it.