@ Lankymart, Cody Gray, I am looking for a .vbs solution, and not a .bat solution.
I have a vbs (convert-ffmpeg.vbs) that I use to convert my video by dropping the file onto the icon. It only works if the filename is in English. If I drop a non-English, it doesn't work. The msgbox shows "?" instead of the actual name.
Option Explicit
Dim Convertor
Dim ConvertorExeName
Dim Parameters
Dim appendID
Dim lProcessID
Convertor="""D:\ffmpeg-20190427-8019395-win64-static\bin\ffmpeg.exe """
ConvertorExeName="ffmpeg.exe"
Parameters=" -c:v h264_qsv -global_quality 20 -b:a 128k -c:a aac "
appendID="ffmpeg"
Dim FileExt
Dim OutFile
Dim i,r,f
dim startTime
startTime=Now
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
For i= 0 to WScript.Arguments.Count-1
f=WScript.Arguments(i)
msgbox(f)
I created a bat file as a workaround as shown below. the chcp 65001
tells windows to expect unicode. May I know is there a way to indicate the code page the vbs file instead?
chcp 65001
FOR %%f IN (%*) DO (
convert-ffmpeg %%f
)