Can I create clickable links to documents without using drive letters?

Posted on 2009-04-16
Last Modified: 2012-05-06
I have a stack of flash drives and have learned a little about Autorun.inf. When I plug in the drive, I have figured out how to auto-launch a PDF, but I want that PDF to have links to documents on the drive. Is there a way to have links to documents on the drive without using drive letters (as these drives will go to multiple machines with no way to know what drive letters are available)? Currently, I have the drive Autorun configured to define an Icon, define a drive name (not letter) and launch a PDF.

Also, I assume that the autorun functionality is limited to Windows (not functional on Macs), right?

Question by:TREKrider
    LVL 10

    Expert Comment

    What does the link look like at this moment?
    LVL 62

    Accepted Solution

    Yes, use relative links based on the location of the PDF

    Assisted Solution

    You could try to create an HTML file that links to multiple docs on your drive. When you create hyperlinks and use a relative path for the url of each link, the browser will automatically render the whole path.

    Try this: Create two files on your desktop as a proof of concept.
    One called test.html
    one called test.txt

    I scrambled some quick code together in the attached Code Snoppet.

    When I viewed test.html in a browser (ie 7) I observed that the link was automatically formed with the correct drive letter and path to the test.txt file...
    <a href="test.txt">test.txt</a>

    Open in new window


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
    The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now