I want to run/start a program from inside a .Net Windows application. I've
tried using SHELL() but it only seems to work for some programs like
notepad.exe and .bat files. Other programs I try to run seems to fail with
the error 'File Not Found'. Is there another command to use?
Clamps - 06 Sep 2005 16:59 GMT
system.diagnostics.proccess.start("Notepad.exe")
> I want to run/start a program from inside a .Net Windows application. I've
> tried using SHELL() but it only seems to work for some programs like
> notepad.exe and .bat files. Other programs I try to run seems to fail with
> the error 'File Not Found'. Is there another command to use?
CLEAR-RCIC - 07 Sep 2005 01:20 GMT
Thanks!
> system.diagnostics.proccess.start("Notepad.exe")
>
[quoted text clipped - 4 lines]
> with
> > the error 'File Not Found'. Is there another command to use?
Boyd - 07 Sep 2005 01:06 GMT
This will happen if the desired application is not in the "path" and not in
the "current working directory"
For testing purposes it is often best to specify explicit path to
application. Switch to programmable location before deploying the
application.
/Boyd
> I want to run/start a program from inside a .Net Windows application. I've
> tried using SHELL() but it only seems to work for some programs like
> notepad.exe and .bat files. Other programs I try to run seems to fail with
> the error 'File Not Found'. Is there another command to use?