Я не знаю, как выполнить файл exe
в node.js
. Вот код, который я использую. Он не работает и ничего не печатает. Есть ли способ выполнить файл exe
с помощью командной строки?
var fun = function() {
console.log("rrrr");
exec('CALL hai.exe', function(err, data) {
console.log(err)
console.log(data.toString());
});
}
fun();