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.
SharePoint Admin?

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


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

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 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