Yasser Shohoud [MS]
1/22/2003 9:48:00 PM
Sunil,
Have a look at the System.Diagnostics.Process object.
' VB
...
Imports System.Diagnostics
...
p = New System.Diagnostics.Process()
p.StartInfo.FileName = ExeName
p.StartInfo.Arguments = params
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.EnableRaisingEvents = True
p.Start()
That's a pretty ruff example but hopefully you get the idea.
Mike Clark
Microsoft
--
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Sunil" <kadasunil@hotmail.com> wrote in message
news:ecvcDnbwCHA.440@TK2MSFTNGP12...
> Hello Gurus,
>
> I have a question. Using asp I am able to execute command line code using
> wscript commands
> ex:
> set oshell = server.createobject("wscript.shell")
> oShell.Run [command line code]
>
> How can we execute command line code using asp.net. Please let me know.
> Thanks in advance
>
> S
>
>