I am trying to call an exe file from the node.js with 3 parameters. Getting error as
errno: 'ENOENT'
code: 'ENOENT'
I am using 64 bit windows 10 system . Here is the code that i am using currently
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();

__dirname + '/file.exe'and see if that works?