相关疑难解决方法(0)

使用node.js执行exe文件

我不知道如何执行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)

javascript node.js

41
推荐指数
3
解决办法
5万
查看次数

标签 统计

javascript ×1

node.js ×1