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

Executing a Server Side Executable via ASP

Status
Not open for further replies.

da644

Programmer
May 21, 2001
159
GB
Hi Everyone.

Is there anyway I can write a ASP script to execute a executable on the server from the script. For example, I have a batch file the restarts a service for me, but I would like to be able to execute from the web browser, any ideas???

Thanks.

Best Regards

Andrew
 
One way is to create an activex dll (in vb or vc).
Since asp can access com (activex), then anything within that activex dll can be executed via a call to the activex dll.
Look into api calls or the "shell" command in vb.
There are many ways to solve this one, but the main point is that by creating your calls in an activex dll, you can issue a
Server.CreateObject("activexdll.ClassName) and then create an object that can in turn invoke anything within your activex dll from the web.
Hope this helps. Gilbert M. Vanegas
Programmer Analyst III
County of San Bernardino - ISD
Email : gvanegas@isd.sbcounty.gov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top