Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 5th, 2003, 11:29 PM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to run an exe application from ASP

hi,

is is possible to run an exe application from IIS server.
i have developed a VB application that creates charts and
displays it in a form. is there any way i can run this
exe from my ASP page..

would really appreciate your help!!

thanks.

  #2 (permalink)  
Old August 6th, 2003, 08:32 AM
Authorized User
 
Join Date: Aug 2003
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes you can,
Register the exe using the following command

c:/directorywhereyouhavetheexe/filena.exe regserver

Once you do this, your exe is registered as a component and you can create referenes to it using
"Server.CreateObject" command in your asp.

hope this helps.

Vivek
  #3 (permalink)  
Old August 6th, 2003, 11:49 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

chintu..

can you provide me an example that opens an exe file in
an ASP page..

thanks..



  #4 (permalink)  
Old August 6th, 2003, 01:48 PM
Authorized User
 
Join Date: Aug 2003
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As i told you earlier, all you have to do is register the exe on the server using the regserver command, and you can access the exe from your asp.,say for example i registered a exe called myexe. It has class like clsx and clsx has a function called add. in my asp code in order to use the exe i do something like this:


<%
Dim myobj
Dim myresult

Set myobj = Server.CreateObject("myexe.clsx")
'reference to that class in myexe

myresult = myobj.add(1,2)

%>

did u get the idea??
hope this helps.

Chintu

  #5 (permalink)  
Old August 13th, 2003, 03:43 AM
Authorized User
 
Join Date: Jun 2003
Location: Quezon City, MM, Philippines.
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

You can try using the free AspExec component from ServerObjects.com if you want to run executables or coimmand-line applications remotely through ASP pages.

Cheers!

Marlon Villarama
Support Team
Web Burner Hosting
marlon@webburner.com
www.webburner.com
877-535-2876
  #6 (permalink)  
Old March 8th, 2013, 02:18 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You may use Process.Start to start an EXE from an ASP.NET application, but the EXE will run on the Web server; the user will not see the app in his or her browser.

I don't know of any way to take an existing Windows application and automatically turn it into a Web application. In general, you must rewrite the UI code to display HTML in the user's browser; you may, however, be able to reuse the non-UI code in the Web app.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
run .exe in asp hostxxi Classic ASP Basics 0 June 18th, 2008 05:01 AM
How to run desktop .exe from asp ? Tom Carr Classic ASP Basics 7 April 17th, 2007 10:58 AM
how to run exe (vb) from asp annatg75 Classic ASP Basics 1 September 19th, 2006 08:26 AM
how to run exe file from ASP? Andraw Classic ASP Basics 1 September 23rd, 2005 07:32 AM
Regarding To run EXE from ASP vppatil_20 Classic ASP Components 1 September 9th, 2004 04:08 PM



All times are GMT -4. The time now is 08:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.