How to open Windows File Explorer from Chrome Extension?

2,161 views
Skip to first unread message

gaku

unread,
Nov 19, 2015, 2:29:55 AM11/19/15
to Chromium-extensions
Hello, 

I have a question about how to open Windows File Explorer with url like "file:///C:/~" from Google Chrome Extension.

I could open this url in browser, but I don't know how to open in File Explorer. (It may be impossible)

I have tried in Javascript like this.

Window.open("file:///C:/~");
or
chrome.tabs.create({url: "file:///C:/~"});

but then open in browser both ideas.

Does anyone have idea?

Best regards.

gaku

PhistucK

unread,
Nov 19, 2015, 2:35:08 AM11/19/15
to gaku, Chromium-extensions
It is impossible using JavaScript alone.
You can create a native messaging host and communicate with it and it will open whatever you need.
For more details -


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/2bbe3b6d-baf3-4e7c-886c-aef92ae080c9%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages