arguments is string. I also display it using console.write and the result is correct.
What I really want is to create ffmpeg command that can accept filename with space in it. The command is like
ffmpeg -i "C:\my file"
The reason to have double quote on filename is that ffmpeg only accept file name without space, and so
ffmpeg -i C:\my file
is considered as ffmpeg -i C:\my
However, the filename must be a variable. So I use
- string arguments = "ffmpeg -i " + "\"" + filename + "\"";
For any filename, it will be
ffmpeg -i "filename" (filename is a variable)
But in debugger, arguments is displayed as
"ffmpeg -i \"C:\\my file\""
And ffmpeg can not execute right. However when using
- console.write(arguments);
It display correctly as ffmpeg -i "C:\my file".
So it is weired.