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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.RUN for program on the web, from the web

Status
Not open for further replies.

kimbly

Programmer
Joined
May 29, 2002
Messages
16
Location
US
i would like to be able to run a program (.exe) that is on the web from a vbscript in the same directory. if this is possible, how might i do it?

right now i am running the program through vbscript on the computer, using
WshShell.Run "cmd /C D: & CD \users\kim\henry\ & pos_predic",1,True

i appreciate any help, thanks!
kfarrell
 
You can do it w/ the same code in an asp page
 


kimbly,

Try running this on your web site.

-------- MyASP.asp
'
<html>
<body>
Example

<%
Set WshShell = Server.CreateObject(&quot;Wscript.Shell&quot;)
WshShell.Run &quot;cmd /C D: & CD \users\kim\henry\ & pos_predic&quot;,1,True
response.write &quot;Execution complete&quot;
%>
</body>
</html>


fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top