B
bwalke
I was wondering if and how the Process.Start() command can be used in a
VB.NET Web Application. I want the client side to invoke an .exe
application by clicking a button and I want the .exe to run on the
server side. When the button is clicked the .exe does not run and the
process fails. I have used this Process.Start() command in a Windows
Application before successfully. I have read in groups that it is not
possible to use Process.Start() and also have heard that it is possible
in Web Applications. I also seen stuff about impersonating a user to
run the .exe, does this have to been done, any good quick ways to go
about this. Here is what I have tried so far in the web app with no
luck...
Dim myProcess As New Process()
myProcess.EnableRaisingEvents = False
myProcess.StartInfo.WorkingDirectory =
"C:\NETProjects\test\AppTest\bin\"
myProcess.StartInfo.FileName =
"C:\NETProjects\test\AppTest\bin\AppTest.exe"
myProcess.Start()
Also have tried this...
myProcess =
Process.Start("C:\NETProjects\test\AppTest\bin\AppTest.exe")
Any Suggestions would be great!!
Thanks,
Brett
VB.NET Web Application. I want the client side to invoke an .exe
application by clicking a button and I want the .exe to run on the
server side. When the button is clicked the .exe does not run and the
process fails. I have used this Process.Start() command in a Windows
Application before successfully. I have read in groups that it is not
possible to use Process.Start() and also have heard that it is possible
in Web Applications. I also seen stuff about impersonating a user to
run the .exe, does this have to been done, any good quick ways to go
about this. Here is what I have tried so far in the web app with no
luck...
Dim myProcess As New Process()
myProcess.EnableRaisingEvents = False
myProcess.StartInfo.WorkingDirectory =
"C:\NETProjects\test\AppTest\bin\"
myProcess.StartInfo.FileName =
"C:\NETProjects\test\AppTest\bin\AppTest.exe"
myProcess.Start()
Also have tried this...
myProcess =
Process.Start("C:\NETProjects\test\AppTest\bin\AppTest.exe")
Any Suggestions would be great!!
Thanks,
Brett