I have been trying to implement something like this, but it will time out on the wait for exit?
My objective is to open the file on the client's machine in notepad. The below code is what i originally had, but just learned taht this will only work on the server ,not the client.
public JsonResult Index()
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = "notepad";
proc.StartInfo.Arguments = @"\\share\test.XML";
proc.Start();
proc.WaitForExit();
}
Is there a way to do this?
All i am trying to do is open the test.xml file on a client's machine.
Process.Startwill execute on the server side. It is highly unlikely that you want a bunch of notepad windows opening in the server.