Log in

View Full Version : Open directory



honey4d
12-11-2007, 09:01 AM
Hello.

I'm putting together a CD-ROM (in HTML) and on one of the pages I have a hyperlink to a selection of files (contained on the CD-ROM) - rather than display the images within the browser, I would like to, if possible, open a directory on the desktop showing the files.

Does anyone know if this is possible?

Jon

p.s. Creating a hybrid CD

FordCorsair
12-19-2007, 03:52 PM
I've searched the forum to no avail... can anyone help as I'm trying the same thing.

I've used this 'hack' to launch a flash9.exe file sitting in a folder on my CD but it's not really what I'm after.


<a href="flash9/flashplayer9_install_activex_100107.exe" title="Flash 9" target="_blank" onclick="run_flash'1'; return true;" prompt="no" security="disable">click here</a>

thanks

djr33
12-19-2007, 04:07 PM
HTML isn't meant for this. You can't control the operating system, even just opening a folder.
HTML is an easy way to make a (somewhat) interactive CD, but it won't give you full control like you'd want. For that you'd need a real programming language

You could try using ActiveX if you require they browse with Internet Explorer on Windows, but that's limiting, and I have no idea how you could code that. ActiveX would get you around any security restrictions, IF the user allows it. In fact, it would first come up with that ugly warning about dynamic scripting that they would need to accept.

As far as I know, there are no other tricks.

I guess the next best method would be linking to something that opened the desired folder.
The two ideas that pop into my head are:
1. A basic program that launches it. You could use a batch file. Just add a line to launch the directory, which would be something like start C://documents/, but that would be hard to get the filepath right. I'm not sure what to recommend.
2. You could just use a shortcut on the CD, which would then open the folder.

However, with either method, it would be at the user's discretion whether they want to run the file (open the directory), or just download that file. Depending on the browser, there might be no feature for running it, just downloading. Then they could find the downloaded file and run it, but that's not very efficient.