Opening the OS's file explorer


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!


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.


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


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: