Hello everyone. I am looking to execute a program from my ASP.NET webpage. I have found that you can do this by creating a new System.Diagnostics.Process object, setting the parameters, and runing the Start() method. This works fine for some apps (like I can run Notepad.exe fine) but it's not working right for my exe. I am running a command-line executable with a bunch of arguments. I have everything set up correctly, but when I call the Start() method, IE(and firefox) bring up the File Save/Run dialog box. I don't want the user to have this option. I want it to happen behind the scenes and return a value. Is there anything I can do? Am I doing something wrong? Here's my code...
Any help would be greatly appreciated. Thanks!
Doug
Code:
dim MyProcess as new System.Diagnostics.Process
myProcess.StartInfo.CreateNoWindow = true
myProcess.StartInfo.UseShellExecute = true
myProcess.StartInfo.FileName = "My.exe"
myProcess.StartInfo.Arguments = "My Args"
myProcess.Start()
Any help would be greatly appreciated. Thanks!
Doug