Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run a command line command from asp

Status
Not open for further replies.

howardnl

Programmer
Apr 12, 2001
18
US
Hi,

I need to be able to run a command line command from within asp. How can that be done? I am going to have a user select an option from a list and based on their input run something from the command line. From what I've seen so far, I need to use Wscript.shell, is that right? Thanks for any help.

Thanks
 
Yes, that is correct. You must be running Win2K or NT with at least SP4 or 5 to use WSH.

Code:
<%
  Dim oWSH: oWSH = Server.CreateObject(&quot;WScript.Shell&quot;)
  oWSH.Run (fullpath to exe, 1, True (or False) to wait)
%>

or something like that.

Regards, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top