I am trying to create a little script to convert video on windows using the 'send to' menu. For this I want to create a new file name from the one in input. But I fail to concatenate strings.
Following the syntax found here, I wrote this piece of code:
@echo Input:
@echo %1
set "outputfile=%1%.MP4"
@echo %outputfile%
But I have an issue with the quotes in the outputfile:
Input:
"D:\this is a test\MVI_7754.AVI"
D:\this is a test>set "outputfile="D:\this is a test\MVI_7754.AVI".MP4"
"D:\this is a test\MVI_7754.AVI".MP4
I would expect the extension inside the quotes not outside!
Could someone tell me how I can concatenate the file name and the extension? Thanks!