Display the full UNC path to a file

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



Who is Participating?
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":

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.

higgsyAuthor Commented:

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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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.
Mohammed HamadaSenior IT ConsultantCommented:
Check this if it helps...
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
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.

Mohammed HamadaSenior IT ConsultantCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.