我不知道如何执行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();
Run Code Online (Sandbox Code Playgroud)