Solved

ASP Component Needed

Posted on 2001-08-22
3
338 Views
Last Modified: 2012-06-27
I need a component to run exe.
0
Comment
Question by:ansi_c
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 60 total points
ID: 6416069
Try this
<%
dim wsh
set wsh = server.createobject("WScript.Shell")
wsh.run("C:\windows\notepad.exe")
set wsh = nothing
%>

You can also use AspExec component. Download it at http://www.serverobjects.com/products.htm

hongjun
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6416070
Note that the use of WScript.Shell does not really need you to register any new dlls. It should be there already.

hongjun
0
 

Author Comment

by:ansi_c
ID: 6416093
Thanks. I think I will use WScript for simplicity.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question