我正在尝试使用 3 个参数从 node.js 调用 exe 文件。得到错误为
errno: 'ENOENT'
code: 'ENOENT'
我正在使用 64 位 windows 10 系统。这是我目前使用的代码
var exec = require('child_process').execFile;
var opt =function(){
exec('file.EXE arg1 arg2 arg3', function(err, data) {
console.log(err)
console.log(data.toString());
});
}
opt();
慕勒3428872
相关分类