Category : child-process

I’m writing a Node script that performs a "Reveal file in explorer" function. My code boils down to this: const {spawn} = require(‘child_process’); // This works (it opens C:/path/to/file and highlights the file named "WithoutSpaces" spawn(‘explorer’, ["C:pathtofileWithoutSpaces,", "/select"]); // However, this does not work. It defaults to opening a file explorer window with my Documents ..

Read more