Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Execute Operating system commands


Message #1 by "Alice Claussen" <wilice@i...> on Tue, 11 Dec 2001 15:14:18
Hi all,

Do you know a way how to run OS commands, like bat files thru an asp page?

Thank you very much

Alice Claussen

Message #2 by "TomMallard" <mallard@s...> on Tue, 11 Dec 2001 07:48:12 -0800
set WshShell = CreateObject("WScript.Shell")

WshShell.Run "filename.bat"



The machine account needs to have execute permissions to run host scripts.



tom mallard

seattle

----- Original Message -----

From: "Alice Claussen" <wilice@i...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, December 11, 2001 3:14 PM

Subject: [asp_web_howto] Execute Operating system commands





> Hi all,

> Do you know a way how to run OS commands, like bat files thru an asp page?

> Thank you very much

> Alice Claussen

>




$subst('Email.Unsub').

>



Message #3 by "Jason Salas" <jason@k...> on Tue, 11 Dec 2001 18:04:13 +1000
Hi Alice,



Try the following:



<%

Dim shellCommand

Set shellCommand = CreateObject("WScript.Shell")

shellCommand.Run "yourbatchfile.bat"

%>



HTH,

Jason



----- Original Message -----

From: "Alice Claussen" <wilice@i...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, December 11, 2001 3:14 PM

Subject: [asp_web_howto] Execute Operating system commands





> Hi all,

> Do you know a way how to run OS commands, like bat files thru an asp page?

> Thank you very much

> Alice Claussen

>




$subst('Email.Unsub').

>




  Return to Index