PDA

Click to See Complete Forum and Search --> : Startup EXE from ASP page


Berthil
Nov 2nd, 2000, 05:13 AM
Does anyone know a command for starting up an executable with a known location and load a file in that application in one go from an ASP page?

I know the VB ShellExecute and Shell options, but does anyone has some readymade ASP-code?

I want to avoid to do it through a link which always comes with the open and save as dialog.

Nov 2nd, 2000, 01:59 PM
If you have IIS5 (Windows2000) installed then you could use:

<% server.execute "myprogram.exe" %>

Berthil
Nov 2nd, 2000, 04:49 PM
My company's Intranet hasn't, and judging by the service level of my company's servise desk they won't have in quite some time either. Thanx anyway.

Nov 4th, 2000, 06:38 PM
well, first of all, "Programming till i drop", i hope you dropped, if not please read the asp documentation before posting, Server.Execute executes .asp files, not executables. Look here for more info: http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/iisref/vbob9pid.htm

As for running executables from your asp pages, don't do it, figure out a way to do with in proc components, it'll be significantly faster than executing an Exe. If you want the pain of executing an [ActiveX] .Exe then you need to do a registry hack for IIS 4.0[IIS 5.0 ignores the hack, more info: http://support.microsoft.com/support/kb/articles/Q233/9/68.ASP]. The IIS 4 hack for launching out of process components(ActiveX Exe's to clarify) can be found here:
http://support.microsoft.com/support/kb/articles/Q184/6/82.ASP