Skip to main content
Participant
January 7, 2008
Question

Linking to a file on a to be burned CD

  • January 7, 2008
  • 2 replies
  • 896 views
I have a button that I want to open an html file when clicked. I can link it to the file but only on my local machine. I need to manually write in a link to a directory on a cd that will be burned. so for example, the file i want to link to is index.html located in INDEX directory. I tried making the path \INDEX\index.html but that does not work, I also tried .\INDEX\index.html and ..\INDEX\index.html, does anyone know how to do this?
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    January 7, 2008
    quote:

    Originally posted by: fiktionVT
    I have a button that I want to open an html file when clicked. I can link it to the file but only on my local machine. I need to manually write in a link to a directory on a cd that will be burned. so for example, the file i want to link to is index.html located in INDEX directory. I tried making the path \INDEX\index.html but that does not work, I also tried .\INDEX\index.html and ..\INDEX\index.html, does anyone know how to do this?


    You'd most likely need to include the drive letter of your CD drive. For example, if your CD drive is your E: drive, then you'd link to E:\INDEX\INDEX.HTML. The problem with this is that if the letter assigned to your CD drive changes, or if you use this on another PC where the CD drive has a different letter assigned, it will not work at all.
    Captiv8r
    Legend
    January 7, 2008
    Hi Mike

    No, you shouldn't have to include the drive letter. As you pointed out, this letter will likely be different on many different PCs. By using a drive letter, you are creating what we call an "Absolute" link. A link that totally expects the identical path specified. The trick here is to create what is known as a "Relative" link. With these types of links, you simply ensure that the file you are linking from and to exist in the same locations relative to each other.

    Cheers... Rick
    Captiv8r
    Legend
    January 7, 2008
    Sorry, well I will be burning the file on to the cd also, so the index file will be on the cd in the driectory D:\INDEX\index.htm, but as for the button I cant seem to write the correct link in there to locate that file without putting the cd drive letter in, I want to this to run on every computer with varying drive letters. It looks like its not possible.
    Hi again

    Did you post your response after reading the thread I linked to? Or did you reply to the thread before seeing what I posted? Because it is actually possible. I've done it on a number of occasions and I've yet to see it fail.

    Cheers... Rick
    Captiv8r
    Legend
    January 7, 2008
    Hi fiktionVT

    You might try simply INDEX/index.html.

    If that doesn't work, let us know and I may have a different option you can try.

    Cheers... Rick
    fiktionVTAuthor
    Participant
    January 7, 2008
    thats a forward slash?
    Captiv8r
    Legend
    January 7, 2008
    Why yes it is!