Results 1 to 3 of 3

Thread: Open directory

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Open directory

    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

  2. #2
    Join Date
    Aug 2005
    Location
    Dorset, England
    Posts
    46
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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.

    Code:
    <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

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •