I am linking on an intranet page to a local file on a shared drive:
<a href="file:///s:/test.xls"> Test</a>
This works in IE and Firefox with an addon called local link.
How can i get this to open in google chrome?
Thanks
I am linking on an intranet page to a local file on a shared drive:
<a href="file:///s:/test.xls"> Test</a>
This works in IE and Firefox with an addon called local link.
How can i get this to open in google chrome?
Thanks
You can't link to
file:///
from an HTML document that is not itself afile:///
for security reasons.LocalLinks now seems to be obsolete.
LocalExplorer seems to have taken it's place and provides similar functionality:
https://chrome.google.com/webstore/detail/local-explorer-file-manag/eokekhgpaakbkfkmjjcbffibkencdfkl/reviews?hl=en
It's basically a chrome plugin that replaces
file://
links withlocalexplorer://
links, combined with an installable protocol handler that interceptslocalexplorer://
links.Best thing I can find available right now, I have no affiliation with the developer.
This question is dated, but I had the same problem just now, the solution I found was to map a virtual directory in IIS to the networked drive with the documents, so the url became a friendly "http://" address.
Setting virtual directories:
IIS:
http://www.iis.net/configreference/system.applicationhost/sites/site/application/virtualdirectory
Apache:
http://w3shaman.com/article/creating-virtual-directory-apache
Cheers!
It's not really an anwser but a workaround to open a local link in chrome using python.
Copy the local link you want to run then run the code bellow (using a shortcut), it will open your link.
From what I've seen of this the following is true for Firefox and Chrome;
1) If you have a HTML page open from a remote host then
file://
links will not work i.e. Your address bar readshttp://someserver.domain
and the page contains a link such as<a href="file:///S:/sharedfile.txt">
2) If you have a HTML page open from your local host then
file://
links will work i.e. your address bar readsfile:///C:/mydir/index.html
and the page contains a link such as<a href="file:///S:/sharedfile.txt">
For Internet Explorer point 1) does not hold true. A file on your local host can be accessed using the
file://
link syntax from a webpage on a remote host. This is considered a security flaw in IE(By who? References?) (and it's there in IE8 too) because a remote host can access files on your local computer without your knowledge .... admittedly they have to get lucky with the filename but there are plenty of commonly named files there with the potential to contain personal/private information.I've just came across the same problem and found the chrome extension Open IE.
That's the only one what works for me (Chrome V46 & V52). The only disadvantefge is, that you need to install an additional program, means you need admin rights.