您可以在node.js中尝试子进程模块的execFile函数
请参阅:http
:
//nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback
您的代码应类似于:
var exec = require('child_process').execFile;var fun =function(){ console.log("fun() start"); exec('HelloJithin.exe', function(err, data) { console.log(err) console.log(data.toString()); }); }fun();


