How to run a exe file

  • Thread starter Thread starter Ray Woodard
  • Start date Start date
R

Ray Woodard

I have web application that gets a self extracting exe
file from an FTP server. I get it downloaded and stored on
local HD just fine. Now I need to run it. It runs fine
from Windows command line.

I created a dotNet process object to run it. The process
apparently starts. I can get a ProcID back from the
Process Object. I used a WaitforExit, the process exits,
but with exit code 1. And it does not expand files or run
successfully. Any idea how to run the file or how to
figure out why it works in Windows, but not as a process
in dotNet?
Thanks,Ray
 
Are you reading the error stream?
This will probably tell you what is wrong.
Have a look at online help for process.start(). I think there is a sample on
how to do it.

José
 
-----Original Message-----
Are you reading the error stream?
This will probably tell you what is wrong.
Thanks José,
I don't know how to read an error stream. If it was a
Windows app I guess I could put the error messages in a
window like the ErrorDialog, but I think that only works
for Windows apps. I want to run this as a web app on a web
server.
thanks,
ray
 
Back
Top