Topic: Start programs in html? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9592" title="Pages that link to Topic: Start programs in html? (Page 1 of 1)" rel="nofollow" >Topic: Start programs in html? <span class="small">(Page 1 of 1)</span>\

 
Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 01-28-2003 20:40

Ok i am working on an cd for keeping al my share and freeware....So that i can install when needed.
Now i know a way to start and html page when the cd is loaded in the player.
But how do i start .exe or .com files from the html file?
I did something before but i completely forgot how to do this.
Somebody just clicks on a link or a button and the program should start.
The htmlpage should not close with this action.

~So it's your birthday today? congratulations and have a nice day. So it's not? have a nice day too~

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 01-28-2003 21:02

Well, the simplest way is through an ordinary link "<a href="C:\Program\folder\folder\app.exe">startIt</a>"
which will kick open the box "save or run", then just click run and that's it.
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 01-28-2003 21:05

Uh Yeah....that's what I would have done!

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 01-28-2003 21:21

ok...that's ugly...
Then i better dump al the proggies to the cd and open the cd with explorer...

There should be a neat way to do this.
Maybe with stylesheets or javascript.
Like this:
Position mouse on progam name ----> Description of program shows
Click on program name ----> start program

~So it's your birthday today? congratulations and have a nice day. So it's not? have a nice day too~

lawrie
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2003

posted posted 01-29-2003 12:08

Hi,
check this link, . http://www.dreamweaver-extensions.com/publish.htm
I think its what you are after

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 01-29-2003 14:43

ok after an extensive search i found this site
and there i saw this text.

quote:
HTML Autoplay

This CD autorun application uses Internet Explorer embedded in a dialog to display HTML pages. It uses a simple ini file to direct the embedded browser to the autorun homepage and uses a custom HREF protocol to handle ShellExecuteEx commands to perform things like printing, launching readmes, and executing applications. These custom HREF commands are configured and defined in the self-documented autoplay.ini file. It was developed on Win2000, VC6, SP3 and requires IE4+ on the user's machine in order to function.

Notes:

* Clicking on the "Install Application" link in the included sample will generate an error, because no "Setup.exe" file is included. The link is just there to give you the idea without increasing the download size.
* Internet Explorer 4 or above must be installed on end user's machine, otherwise the autorun application will fail.

ZIP HTMLautoplay.zip Written by Matt Weagle
File size: 198.782 bytes Last update: 2001-09-19

The source code for this tool is also available. Any bugs/mods/improvements that you have found/implemented should be reported to Matt Weagle.

ZIP HTMLautoplaySrc.zip Written by Matt Weagle
File size: 30.179 bytes Last update: 2002-04-29



Lawrie you got verry close.
Thanks guys

~So it's your birthday today? congratulations and have a nice day. So it's not? have a nice day too~

[This message has been edited by Rinswind 2th (edited 01-29-2003).]

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 01-29-2003 21:35

Well, if you settle for IE only you can use VBScript...
This example opens M$Word plus a file that you specify.

you should be able to adapt it, work with "Set objWord = CreateObject("Word.Application")" to the application that you want to open.
Just play around with it and see what it does, ok.

code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
<!-- This in an activeX way of opening a file outside of your browser-->
Dim objWord
Sub Btn1_onclick()
call OpenDoc("this/is/your/http/or/file/path/to/your/document.doc")
End Sub

Sub OpenDoc(strLocation)

Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open strLocation
End Sub

</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Word Doc">
</BODY>
</HTML>



/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu