p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Components (http://p2p.wrox.com/forumdisplay.php?f=68)
-   -   how to run an exe application from ASP (http://p2p.wrox.com/showthread.php?t=2485)

vik_asp August 5th, 2003 10:29 PM

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.


chintu August 6th, 2003 07:32 AM

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

vik_asp August 6th, 2003 10:49 AM

chintu..

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

thanks..




chintu August 6th, 2003 12:48 PM

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


planeswalk August 13th, 2003 02:43 AM

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

linda88 March 8th, 2013 02:18 AM

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.


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

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