Dear all,
I am trying to read the text file which has exe files folder path ( d:\retail\ ) from menu items.
I am using the following code..
he contents of rep_path file is d:\retail\
but when I tried to call executable file from menu It displays the following error
"the system cannot find the specified file".
plz find the attached pic. This code is working in my own pc and in other client machines.
But in one client machine this is showing this error. I am not able to understand the problem.
Also I am using "system.io" name space.
plz give the solution.
thanks and regards
madhu
I am trying to read the text file which has exe files folder path ( d:\retail\ ) from menu items.
I am using the following code..
C#:
private void rMSALESToolStripMenuItem_Click(object sender, EventArgs e)
{
string str = System.IO.File.ReadAllText(@"d:\retail\rep_path.txt");
Process myProcess = new Process();
myProcess.StartInfo.FileName = str + "rm_sales.exe";
myProcess.Start();
}
but when I tried to call executable file from menu It displays the following error
"the system cannot find the specified file".
plz find the attached pic. This code is working in my own pc and in other client machines.
But in one client machine this is showing this error. I am not able to understand the problem.
Also I am using "system.io" name space.
plz give the solution.
thanks and regards
madhu
Attachments
Last edited by a moderator: