How do I start a file from an ASP file?

How do I start a file from an ASP file?
jflAsked:
Who is Participating?
 
soedingConnect With a Mentor Commented:
jfl,
you cannot start an EXE from ASP without having the EXE registered,
but, assumed that Perl is installed, there is a workaround:

Response.Redirect "mail.pl"

Code in mail.pl:

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

0
 
jamestthomasCommented:
what do you mean by start a file, if you mean launch an executable user server.createObject("yourpgm").
0
 
jflAuthor Commented:
Yes, that's what I mean.

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

Run : sendmail.exe
Parameter : 3

How do I do that?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
jamestthomasCommented:
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.
0
 
jflAuthor Commented:
Is it not possible to start an EXE from an ASP file whithout having the EXE registered?
0
 
jflAuthor Commented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.