I have a problem when sending a command from my C# application. I want to execute an .exe file with some using quotes in parameter values but cannot find a way to do so. What I need to execute is something like that:
C:/Program Files/.../my_exe.exe /path1="C:/Temp/Myfile.txt"
I do the following :
var request = "C:/Program Files/.../my_exe.exe /path1=C:/Temp/Myfile.txt";
Process.Start(request);
If I send the command without quotes then it is not working.
Then I tried to send quotes using \"
, or \u0022
, but both of them send me \"
instead of just quotes.
Any further ideas please?