exception at process.start(), of The parameter is incorrect
Posted
by
user1163428
on Stack Overflow
See other posts from Stack Overflow
or by user1163428
Published on 2012-07-04T03:06:04Z
Indexed on
2012/07/04
3:15 UTC
Read the original article
Hit count: 84
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
© Stack Overflow or respective owner