Opening the OS's file explorer


#1

I have an image gallery app, and I’m trying to make a “Open in Explorer” button. How can I open the operating system’s file explorer (Windows Explorer, for example) in the specified folder?

Thanks in advance!


#2

You might want to take a look at how Atom does it. I can’t find the code right now, but I know it has the capability.


#3

The relevant code in atom tree-view seems to be here:


#4

Thank you! I got it working that way, but then I found an even easier way to do it: Electron’s very own shell module has a “showItemInFolder” method. :smiley: