gajra
09-23-2002, 12:42 PM
I have written a Windows script Host file say MyWsh.wsf
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="Windows Script Host">
<job>
<script language="VBscript">
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oshell.run "cmd /K dir"
Set oShell = Nothing
</script>
</job>
</package>
The above script host file when run in command prompt will open another command prompt and execute dir command.
now can i do the same using .aspx
How can execute a command by openening a command window using asp.net
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="Windows Script Host">
<job>
<script language="VBscript">
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oshell.run "cmd /K dir"
Set oShell = Nothing
</script>
</job>
</package>
The above script host file when run in command prompt will open another command prompt and execute dir command.
now can i do the same using .aspx
How can execute a command by openening a command window using asp.net