B
Benny Lam
Hi,
I have a question about System.Process of .NET in C#...
in this code:
static void Main(string[] args)
{
string filename = args[0];
Process p = new Process();
p.StartInfo.FileName =filename;
p.StartInfo.UseShellExecute = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.Start();
p.WaitForExit();
Console.WriteLine("Bye");
}
When i use it to open file, e.g. test.exe c:\123.xls and text.exe c:\456.xls.
the second text.exe will show the error.
that means Process can not monitor the same application at the same time.
Right?
Anyone knows how to solve it?
I have a question about System.Process of .NET in C#...
in this code:
static void Main(string[] args)
{
string filename = args[0];
Process p = new Process();
p.StartInfo.FileName =filename;
p.StartInfo.UseShellExecute = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.Start();
p.WaitForExit();
Console.WriteLine("Bye");
}
When i use it to open file, e.g. test.exe c:\123.xls and text.exe c:\456.xls.
the second text.exe will show the error.
that means Process can not monitor the same application at the same time.
Right?
Anyone knows how to solve it?