How do I start a file from an ASP file?

Posted on 1998-11-06
Last Modified: 2010-04-30
How do I start a file from an ASP file?
Question by:jfl
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 1443577
what do you mean by start a file, if you mean launch an executable user server.createObject("yourpgm").

Author Comment

ID: 1443578
Yes, that's what I mean.

I need to start an executable from an ASP file and give the executable file a parameter.

Run : sendmail.exe
Parameter : 3

How do I do that?

Expert Comment

ID: 1443579
You should create an active x dll that does what you want it to do.  These can be created very easily in VB.  When it is regestered on your server you create an object which is your running dll using the above statment.  Then you can reference the objects methods and send paramaters.  It is a long topic and I would need to know more about your level of understanding to go into enough detail.
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 1443580
Is it not possible to start an EXE from an ASP file whithout having the EXE registered?

Accepted Solution

soeding earned 10 total points
ID: 1443581
you cannot start an EXE from ASP without having the EXE registered,
but, assumed that Perl is installed, there is a workaround:

Response.Redirect ""

Code in

system "myEXE.exe Parameter";
print "HTTP 301 Redirect\n";
print "Location: nextPage.asp";


Author Comment

ID: 1443582
would it affect my ASP if the exe is slow?

I mean if the exe has to do a lot of work, will the ASP need to wait for the exe to finish?

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month9 days, left to enroll

615 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