exception at process.start(), of The parameter is incorrect
- by user1163428
i am trying to start a c++ exe file from c# by a click of a button , but it is throwing an Exception of type 'System.Exception' at process.start(); , although the file is correct . i have tried :
private void button2_Click(object sender, EventArgs e)
{
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName = "E:\\tc\\5a.exe";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
}
when i view details of this exception it shows "The parameter is incorrect"
the file is present at e:\tc
when i do same thing but in filename i keep "cmd.exe" it works .
thank you in advance