HTML file:// links : open in explorer from Chrome
Asked Answered
W

1

19

I have an html file with links like that :

<a href="N:\folder1\folder2">folder name</a>

I would like that this link opens explorer instead of a custome chrome file html based browser. This works from IE btw.

Thank you ! Nicolas.

Whited answered 18/10, 2013 at 9:38 Comment(3)
It can't be done on Chrome, Opera or Safari.Guanaco
I would recommend this Chrome extension. It allows you to open folder & files directly on Chrome. Quite convenient to use. However, it requires you to install a file called "Integration Module". Honestly not a fan of this practice. But at least there is no suspicious thing in this file as far as I checked.Solipsism
@BradsonErik I had kind of thought an external process would be needed to open the default file manager, but this particular extension seems shady. It just provides a link to the EXE with no source code, and VirusTotal says two viruses are found, and the home page says coming soon or something. Isn't there any more trust-able extension than that?Decontaminate
G
23

For Chrome, Safari and Opera this isn't possible due to their security model. However, there is somewhat of a solution for Chrome in that it's possible but it has two requirements:

  1. You need to get the user to install this Chrome extension
  2. It must be over https://

You will probably encounter the same problem for Firefox since it usually requires LocalLink.

Further reading

Guanaco answered 18/10, 2013 at 9:57 Comment(3)
Thank you for you answer. For your point 2, file:// for a local directory wont work ?Whited
Chrome extension works for http internally web projectSeltzer
Don't bother. That extension is for opening a local file, not a local directory with the default file manager like Windows File Explorer. Why, the very name of the extension is "Enable local FILE links".Decontaminate

© 2022 - 2024 — McMap. All rights reserved.