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!
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.
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 ??
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.
Addint the link file is easy, but when you click on it, it is simply downloaded as a “download file”
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.
Good readinng this post
Thanks. But please note that this is nearly 10 years old and functionality has changed since than 🙂