PDA

View Full Version : Anyone know how....?


LabRat
7-23-02, 02:04 AM
Does anyone know how to make an HTML link open a .EXE (executable) file? Or maybe javascript. I've been looking through different HTML tags and haven't found anything yet.

Thanx in advance for any help
Mike

alphadesk
7-23-02, 02:15 AM
What you want it to do is just open it?

If you link to a .exe file the browser is going to prompt if you want to save to disk or open it, just like certain other files.

<a href="http://www.yourdomain.com/yourfile.exe">exefile</a>

LabRat
7-23-02, 04:15 AM
Actually I'm creating an autostart to burn on a cd, the autostart will open an HTML file that will be a menu for different options on the cd, some of which will run installable screensavers, digital video clips, etc., etc.

Mike

alphadesk
7-23-02, 04:21 AM
In that case, I have no idea how you would do that. Maybe someone else will.

BerksWebGuy
7-23-02, 09:15 AM
If you want to auto-run a CD, and open an HTML window...this would have to be in the .exe program.

If you want a HTML window to open CD program...the HTML page would have to reside on the local computer. You can not control a CD-ROM from a website (or there would be chaos online).

Which one are you trying to do??

blurchy
7-23-02, 02:36 PM
hi mike

i get what your trying to do (i think)

you make a cd with some html files and .exe files

on , you put the cd in and up pops

a html file with your menu on etc etc

its a browser for a cd

like a game has

well youll need an autorun.inf file

in this case

to link to a file for it to open

its very much like writing a website all your files have to

be in one place etc etc

you have your .exe files in a folder called say

programs so your link would be

<a href="/programs/your.exe</a>

or something like that

you html and icon file will be on the cd without

being in a folder

i have an autorun.inf file but ill have to see if it will

open a html file it will do an icon but to actually tell

if its gonna work ill have to burn a cd,

see what happens is the cd goes in and it detects the autorun

and follows the instructions inside

ill get back to you

blurchy
7-23-02, 04:13 PM
If you want to auto-run a CD, and open an HTML window...this would have to be in the .exe program.

this is true

i didnt think you would need an .exe file

for that but ya do

i tried for ages to do this using the AUTORUN.inf file

the best i could do was open an icon lol

a long while ago i opened one of these browser files

and saw all these paths to images inside it

so i tried to delete a few and see if i could make

my own custom browser for a cd all it did was leave me with lots

of space s where the images had been lol


on a good point this .exe file link does work

i copied this link out of dreamweaver

the html file and the program are in the same directory

<a href="aaw.exe">aaa </a>

BUT like

alphadesk says it will ask you whether you want to open

or save the file even though its on your hard drive ?

strange eh


well ill be looking at this post to see

if anyone can solve this id like to be able to do this too

:)

LabRat
7-23-02, 05:31 PM
Hey Brurchy

Your right on about what I'm trying to do :) I do have an exe from Rodonic, http://www.rodonic.com/rodonic/?p=Products , that will utlilize an autorun.ini to open either an exe or an html. But I'm stumped on running another exe on my burned cd directly from my html menu. Maybe there's a javascript answer?? Or, even better yet, a way to do it using Flash menu's inside an html?

Mike

blurchy
7-23-02, 07:38 PM
hang on im lost now lol

so u have the .exe to run the html file now

have u set it up yet ?

But I'm stumped on running another exe on my burned cd directly from my html menu

do u mean u dont know how to set it up

LabRat
7-23-02, 08:25 PM
Originally posted by blurchy
hang on im lost now lol

so u have the .exe to run the html file now

have u set it up yet ?


do u mean u dont know how to set it up

--------------------------------------
Yes, I have the exe file to run the html file. From that point on I will have an html file that will open when the CD is inserted into the drive and give the user different menu options to run different programs on the cd.

At that point I want to be able to have the user select a menu item that runs a program on the cd, such as an exe file on the cd without it asking the user if it wants to save to disk or run the program.

I guess I have a hard time explaining meself lol :)

blurchy
7-23-02, 08:33 PM
hi

its hard to tell what people mean on here

its also hard for them to explain what they mean too

ive got it now anyway

well i did have a go at this ive so far had no luck

the way it is

as i see it is you have to click on the .exe file directly

other wise it will ask u to save or run

hmm its a tuff one that

unless theres something in dreamweaver

its prob another .exe file again ??

LabRat
7-23-02, 09:18 PM
Thanks for trying to help Blurchy, I appreciate it and everyone else here to. If I find a way to solve this problem I'll post it back here.

Regards
Mike

blurchy
7-24-02, 10:18 AM
hi

by the way it was BerksWebGuy

who said about the .exe file

i tried to insert a .exe file into html again

but nothing came of it i do remember

getting a joke file with a .exe file embedded

in a word document stephen kings the hand

but ive no idea how this is done ive just tried it now

and no luck it reformatted the .exe into gibberish code

ah well good luck im sure theres a way

have a look on one of those webpage discs it might give

you a clue

or try http://www.overclockers.co.uk

they have a big cd section :)

RSaucier
7-24-02, 11:25 AM
LabRat,

Depending on which version of Flash you're using, you may be able to create a standalone Flash projector which uses the fscommand 'exec' option to launch whatever exe you need to launch. This standalone projector could be launched when the CD is inserted.

However, there's a lot of "if's" involved with this approach -- go to the Macromedia Flash Support (http://www.macromedia.com/support/flash/) page and enter 'fscommand' as the search keyword. Read some of the docs there and you'll see what I mean.

I don't believe it's possible to launch an executable just from an HTML link -- think of the security implications if that were possible (without some helper content like an ActiveX control).

Robert

Berek Halfhand
7-24-02, 10:34 PM
You use.....

<a href="file:///E|/Temp/gw/GRPWISE.EXE">link</a>

LabRat
7-25-02, 12:34 AM
RSaucier:

Unfortunately I don't own Flash. I will be purchacing Swish 2.0 the first of next month, but I don't know if Swish has the ability to do what I'm looking for with this particuular project. However, Swish is in my price range where Flash isn't lol :) Swish also has alot more bells and wistles than Coffeecups Firestarter, which I curently use for web projects. I'll have to go over to Swish's website and research it a little more.

Mike

LabRat
7-25-02, 12:52 AM
Originally posted by Berek Halfhand
You use.....

<a href="file:///E|/Temp/gw/GRPWISE.EXE">link</a>


Berek;

I'm confused? I don't understand the syntax of this line. -

///E|/Temp/gw/GRPWISE.EXE

why 3 slashes, ///, after "file:" ?

is the - E| - a dos like switch??

And what is - Temp/gw/GRPWISE.EXE ??

Regards
The LabRat

RSaucier
7-25-02, 07:17 AM
Berek,

I still get prompted if I want to open or save a file when using the file:/// link. But that's okay by me, I'd rather that be the case than it just fire up...

LabRat,

Swish will let you use the fscommand exec but...and I'm not certain of this...you'll need the standalone player to create the projector.

You'll still want to read the postings on the Macromedia site since it's their Flash Player that will actually be doing the playback :). The player will expect the "launched" files to either be in the same directory as the player or in a subdirectory called "fscommand" depending on which version.

I think this functionality has been removed from Flash MX, though I'm not certain. I'm hoping that if anyone else going through this thread knows for sure that they'll jump on in. :)

Robert

rh0926
7-25-02, 10:57 AM
I found this on a driver disk for Dell.

<font color="Red">IMPORTANT NOTE:</font> When you select "Install Now", you may be given the choice of running this program from its current location, or saving this program to disk. You <em>MUST</em> select "run this program from its current location" for the installation to work.</b>

<div align="center"><form action="setup.exe" method="POST">
<input type="submit" value="Install Now" align="MIDDLE"></form></div>

HTH!

LabRat
7-25-02, 02:50 PM
<b>RSaucer said

Swish will let you use the fscommand exec but...and I'm not certain of this...you'll need the standalone player to create the projector. </b>

Thanx for the info RSaucer :) I'll go check out the info at Macromedias website. It will be interesting to find out if I can use the player outright or if its a proprietary thing where I have to pay for rights on every cd I produce? I suspect the later of course, but I could be wrong :)

Mike

LabRat
7-25-02, 02:53 PM
Originally posted by rh0926
I found this on a driver disk for Dell.

<font color="Red">IMPORTANT NOTE:</font> When you select "Install Now", you may be given the choice of running this program from its current location, or saving this program to disk. You <em>MUST</em> select "run this program from its current location" for the installation to work.</b>

<div align="center"><form action="setup.exe" method="POST">
<input type="submit" value="Install Now" align="MIDDLE"></form></div>

HTH!

That actually might have to be the way I finally end up doing it rh0926. Thanx for the info :)

Mike

Berek Halfhand
7-27-02, 07:02 AM
I just did a quick link in dreamweaver mx and cut and pasted the code. It did work for me. It is ie security that asks what you want to do with the file.