Linking to an UNC path within the documentlibary

Posted by

When you store your documents in a document libary but want to link to a file-share, you might run into a problem.

You can add the “Link to document” content type. But this is restricted to http:// or https:// links only. A file-share can be accessed using the UNC, but this requires the file:// prefix. How to overcome this?

Well, this is what I did. Allow the file type “.lnk”. Create a link to the file-share using Windows Exporer. This will create the .lnk file for you. Add this .lnk file to your document libary and voilá: there’s your UNC link in the document libary!

unc

And, yes, I do know that this issue can also be solved using the out of the box Links app, but in this scenario the requirement was to store these links in the document libary.

6 comments

  1. Hello, how did you do this :” Well, this is what I did. Allow the file type “.lnk”. Create a link to the file-share using Windows Exporer. This will create the .lnk file for you. Add this .lnk file to your document libary and voilá: there’s your UNC link in the document libary! ”
    creating & allowing .ink ??

    1. Hi Jasmin,

      You will need to remove the .LNK filetype from the blocked filetypes of SharePoint. This goes for SharePoint on-premise only (see https://technet.microsoft.com/nl-nl/library/cc262496.aspx).

      Then create a shortcut to the location using Windows Explorer. You can does this, for example, by right-clicking on the desktop and selecting “New shortcut”.

      Windows will create a .LNK file for you. When you add this to a library, you are done.

  2. Addint the link file is easy, but when you click on it, it is simply downloaded as a “download file”

    1. Note that this was an older post. At this moment you can simply at a link to any list or library in SharePoint Online. And if you want an “explorer view” experience: use the OneDrive client.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s