Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2003, 10: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.

 
Old August 6th, 2003, 07: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
 
Old August 6th, 2003, 10: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..



 
Old August 6th, 2003, 12: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

 
Old August 13th, 2003, 02: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
 
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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.