Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run .exe from a html Page 2

Status
Not open for further replies.

Hendy

Programmer
Oct 3, 2000
20
GB
Does anyone know how to run an exe from a html page without the screen coming up to saying run from here, or save to disk?

I just want the EXE to run. Please Help.
 
where do you want the exe to run, on the server or on the client?

there are several ways to have it run on the server, but if you want it to run on the client, i can't think of anything without the prompt showing up
 
I want games to run from a server i.e. the intranet server. any client exe can be move. I am wanting to use it for things like solitare and sure like.
 
I dont belive you can "Execute" a executable from the server, and have it interact with the client, but you can have the client download the exe then run it off the client.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Hey luciddream, how do you get the .exe to run from the server. I want to run a program I wrote in VB from an ASP page, and pass it parms. Or is it easer to make it a DLL. If so, please point me in the right direction.

Thanks, Gary The door to life is never locked, but few have the knowledge to open it.
 
A dll would be better.

Taken from Help file:

"You can build libraries of general-purpose procedures in Visual Basic by making the procedures methods of a class module. Set the Instancing property of the class module to any value except Private or PublicNotCreatable, so that clients can create instances of the class."

Code properties in the dll and then reference the dll with <object ...> tags in html.
Set parameters using the <param name=&quot;xxx&quot; value=&quot;yyy&quot;> tag between the <object ...> and </object> tags.

Simon
 
I'm gonna look up how to reference a dll from an ASP page.
Thank you, but I'm sure I'll be back.....


Gary The door to life is never locked, but few have the knowledge to open it.
 
Another way I have just implemented, is to compile and install the dll on to the server and use something like this in ASP:

Dim objObject
Set objObject = Server.CreateObject(&quot;library_name.class_name&quot;)


and then you can set properties of the object just like any other:

objObject.Caption = &quot;MyCaption&quot;

provided you have coded a

Public Property Let Caption(Byval sData As String)

End Property


I think <object...> and <param> tags are used with just HTML....

Simon
 
Hi, I wanted to know the command to put into a html webpage that runs a .exe file from the server the site is hosted on... no clients need to use the running file. Just needs to be there.

Thanks in advance,

Ted
 
As far as i know, there is no way to force a exe to run automatically on the client side. Unless you get into Java applets, Javascript and ActiveX, mostly little browser bugs. To activate a .exe on the server side you need to use a scripting language. A language like CGI is commonly used to invoke a .exe residing in the /cgi-bin/ directory. If you want to read how to do this, look up CGI Programming, IIS Exploits.

This next section of html code will allow you to call a executable from the local system. I am not sure what you wanted as your post was not fully detailed...
<html>
<body>
<a href=&quot;file:\\C:\WINDOWS\SOL.EXE&quot;>Solitare for Windows</a>
</body>
</html>

later
 
Hi RoboTeddy, could you give us more detail on what you want this to do? Be as specific as you can.

- Gary The door to life is never locked, but few have the knowledge to open it.
 
Solution I managed on a network in HTML:

<IFRAME SRC=&quot;\\einstein\cki.213\skw\&quot; height=75 width=85 scrolling=&quot;no&quot;></IFRAME>
<p><IFRAME SRC=&quot;\\einstein\shareddocs\barcodeshortcut\&quot; height=75 width=85 scrolling=&quot;no&quot;></IFRAME></center>

make windows wider/taller as needed. make sure you link to a folder that has a shortcut to the exe you want to run or else you'll get a bunch of icons in the iframe...

 
Hi folks,
and once more.

I have the same problem, to run an exe on the client side, to perform an operation.
With IE it was not big deal, thanks the codebase:
<HTML>
<HEAD>
<OBJECT CODEBASE=&quot;C:\WINnt\NOTEPAD.EXE&quot; CLASSID='CLSID:10000000-0000-0000-0000-000000000000'></OBJECT>
</HEAD>
<BODY>
</BODY></HTML>

But any ideas for running an exe from Netscape? Linking to an exe, Netscape offers only download, not open it from location, what makes running it more incomfortable.
The only way i found was performing a smartudate, with the exe inside. But this reqieres a certificate, and i dont want spend much money for it or have to run a certificate server.
So, please, any ideas? :O)

Bjoern
 
Ok, me once more.
I found a way. So for everyone, who is interested:
How it works with IE, there is a sample above.
For Netscape, a helper application is necessary. And on every client machine a new setting have to be done. And the .exe must be available local (or in network access).

Sincerely
Björn/Ornis
 
hi, I have a problem and probably you can help me:

I have an aplication on the server that create an account for the mail and I want to call this .exe from a page, so that I have to call it. How can I do it?

Thanks

Viviana angel
 
howdy Ornis, or anybody
Just how can you make &quot;this&quot; work in Netscape???

&quot;this&quot; == running a .exe from an html page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top