Solved

How do I start a file from an ASP file?

Posted on 1998-11-06
6
169 Views
Last Modified: 2010-04-30
How do I start a file from an ASP file?
0
Comment
Question by:jfl
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

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

Author Comment

by:jfl
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.
Example:

Run : sendmail.exe
Parameter : 3

How do I do that?
0
 
LVL 2

Expert Comment

by:jamestthomas
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jfl
ID: 1443580
Is it not possible to start an EXE from an ASP file whithout having the EXE registered?
0
 
LVL 1

Accepted Solution

by:
soeding earned 10 total points
ID: 1443581
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
 

Author Comment

by:jfl
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?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

756 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