Hello,
i need to execute command line from .NET windows application.
I tried with this code but i get error
'C:\Documents' is not recognized as an
internal or external command, operable
program or batch file.
var command ="\"C:\\Documents and Settings\\Administrator\\My Documents\\test.exe\" \"D:\\abc.pdf\" \"C:\\Documents and Settings\\Administrator\\My Documents\\def.pdf\"";
var processInfo = new ProcessStartInfo("cmd","/c " + command)
{
UseShellExecute = false,
RedirectStandardError = true,
CreateNoWindow = true
};
var p = Process.Start(processInfo);