Я использую электрон и nodejs на Windows 10
Как мне найти путь к исполняемому файлу?
Один из способов - запустить команду cli, которая будет использовать что-то вроде
where myfile.exe
есть ли нода-я sh способ?
Используйте , какой модуль :
var which = require('which') // async usage which('node', function (er, resolvedPath) { // er is returned if no "node" is found on the PATH // if it is found, then the absolute path to the exec is returned }).