Display the full UNC path to a file

Posted on 2006-04-18
Last Modified: 2008-01-09
I have an issue where i have a mapped drive X: to a location   \\server\folder\folder2     which has a lot of sub folders within.  Everyone has permission to this drive but not the drive mapped.  I need to send out over 500 links to files within the folders to the whole company so when they click on the link will open the full unc path and not the drive mapping letter.

Is there a tool / script that i can use to be able to exstract the full unc location to a file so that i can send this out????

Would save me a lot of time to be able to write click or run a script to see the whole file



Question by:higgsy
    LVL 5

    Expert Comment

    How about setting you folder yo to "Show fuull path in address bar"?
    Tools....Folder Options...View...

    Do you need to send one like to 500 people or do you need to send multiple different links  to different people?
    Assuming one link:
    Create a .LNK to the location and send that out.
    Example you have X: mapped to \\server\folder\folder2, create a shortcut to \\server\folder\folder2\folder4\folder7 and send that out.


    Author Comment


    the show fulll path option still shows the mapped drive letter in there,  and unfortunatly its for 500 different files that need links...

    cheers anyway
    LVL 4

    Expert Comment

    To see the whole path in the address bar:

    1.  Right-click the Start button and click Explore
    2.  In the left pane, expand My Network Places, Entire Network, Microsoft Windows Network, and Workgroup or domain name
    3.  Find the machine hosting the share and click the desired file

    The address bar will now have the UNC path, not the mapped drive letter.
    LVL 23

    Expert Comment

    by:Mohammed Hamada
    Check this if it helps...
    LVL 6

    Accepted Solution

    I’m not shore what you men but cold it be this

    Shortcut Containing UNC and Static Paths
    For a shortcut that contains both UNC and static paths, shortcut resolution is more complex. If the you have not disabled shortcut resolution, then the original network resource is used. If the shortcut is mapped to the drive specified in the static path, that drive is used. If the resource is mapped to a different drive, the new drive is used, and the shortcut's static path is updated with the new drive information. If the resource is not currently mapped to a drive, one is assigned automatically, and the shortcut is updated with the new drive information.

    If shortcut resolution has been disabled, it is resolved to the specified static path. Note that the original UNC path information is still contained within the shortcut.

    If the original network share is mapped to the drive specified in the static path, the shortcut is resolved to it, but the UNC path information is not deleted from the shortcut.

    If a different network share has been mapped to the drive indicated by the static path, and the static path points to an existing file on that drive, then the UNC information is removed from the shortcut, and the shortcut is resolved like a local shortcut. The update to Shell32.dll causes UNC information in all shortcuts to be ignored if the DWORD value "LinkResolveIgnoreLinkInfo" is present in the following registry key, and set to a data value of "1":

    LVL 6

    Expert Comment

    Display the full UNC path to a file from a Shortcut

    You can download Shortcut.exe from here

    And use it like this to see URL from a .lnk file.

    Shortcut.exe /f:"your lnk file.LNK" /A:q
    LVL 5

    Expert Comment

    You're looking for a way to send out 500 different *links*? Or do you need to send out just a few UNC's so the user can open those and get directly to the files?

    Why wouldn't sending the UNC link "\\server\folder\folder2" work? Each user would then open that link and be able to navigate "downstream" to their file.

    What kind of project requires sending the link to the exact file for 500 different files? Maybe there's a more efficient way if you're actially trying to send out a UNC link to 500 different files.

    If you have the file names in some text format you could use Excel to create a bacth file and accomplish the 500 different links pretty quickly.

    LVL 23

    Expert Comment

    by:Mohammed Hamada
    Why do I need Link Mail?

    You want to send a file to someone on your network, but maybe it is too large to send. The file may be named something like this:


    But you can not send this path because the drive letter may not be G on the other computer. So you have to use what are called UNC file names like this:


    So if you know this UNC name you can email this to someone on your network and they can just click on the link above and the file will open on their machine. By sending just the link you can avoid sending large attachments and clogging up email in boxes. LinkMail can help you do this by determining the UNC name. It then automatically opens your email program and places the link in the message. Just pick a recipient and press send. Even if you don't know the UNC name LinkMail does it all for you.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 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

    22 Experts available now in Live!

    Get 1:1 Help Now