I have a program C:\MyDir\MyProg.exe
I would like to place a button on an aspx page to start the program
(shell-out) and to pass some command line arguments.
Can this be done ?
Sample code would be appreciated.
Thanks in advance for your help.
JimSo MyProg.exe is on the server, right? Because you can't launch a program on
the client. This isn't a virus, is it? (that's why)
Jeff
"Jim McGivney" <mcgiv1@.no-spam.sbcglobal.net> wrote in message
news:usItGsoWGHA.1352@.TK2MSFTNGP05.phx.gbl...
>I have a program C:\MyDir\MyProg.exe
> I would like to place a button on an aspx page to start the program
> (shell-out) and to pass some command line arguments.
> Can this be done ?
> Sample code would be appreciated.
> Thanks in advance for your help.
> Jim
>
Hi Jim,
Try the Process.Start Method
[url]http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[/ur
l]
You'll need to be careful with permissions and probably use impersonation.
Ken
Microsoft MVP [ASP.NET]
"Jim McGivney" <mcgiv1@.no-spam.sbcglobal.net> wrote in message
news:usItGsoWGHA.1352@.TK2MSFTNGP05.phx.gbl...
>I have a program C:\MyDir\MyProg.exe
> I would like to place a button on an aspx page to start the program
> (shell-out) and to pass some command line arguments.
> Can this be done ?
> Sample code would be appreciated.
> Thanks in advance for your help.
> Jim
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment