0

I want open folder in Window File Explorer from any web browser by click but open in web browser windows. I want to open folder in window file explorer.

[Edit] I have not found any resolution. Please remove duplicate flag.

Shusang
  • 337
  • 1
  • 10
  • I'm also looking for it – Ravi Makwana Oct 14 '19 at 10:23
  • which platform.? – chandu komati Oct 14 '19 at 10:25
  • 1
    Also - Linking to local resources is disabled in all modern browsers due to security restrictions. – Craicerjack Oct 14 '19 at 10:26
  • 2
    Not possible. JavaScript doesn't have access to the OS. Unless you *absolutely, positively* know a local folder that exists, you can't access it. If you do, you can use the `file://` protocol like `file://c:/Windows` but this won't necessarily open Windows File Explorer, nor necessarily work on all browsers. It won't even work on Linux or Mac. – VLAZ Oct 14 '19 at 10:26
  • 1
    The closest thing you can do is to use an `` control to open the file picker dialog, but this won't let you choose a specific folder to open. – Rory McCrossan Oct 14 '19 at 10:27
  • 2
    I want to open my sharepoint folder document path in window file explorer. – Shusang Oct 14 '19 at 10:28
  • 1
    @Craicerjack I have try all this but not working. all methods open my folder on browser not in window file explorer. – Shusang Oct 14 '19 at 10:30
  • yes because - Linking to local resources is disabled in all modern browsers due to security restrictions. – Craicerjack Oct 14 '19 at 10:47
  • 1
    you can create first .cmd file and add command to open file explorer and give it for download to user. follow this links https://khailiangtech.wordpress.com/2011/06/07/how-to-create-a-cmd-command-file/ , https://www.watchingthenet.com/open-display-folders-in-windows-explorer-from-the-command-prompt.html – Ravi Makwana Oct 14 '19 at 10:49
  • you also need to add mime in web.config – Ravi Makwana Oct 14 '19 at 12:01

0 Answers0