I'm trying to execute a file with this script:
<script>
function verify() {
var child = require('child_process').execFile;
var executablePath = "C:\file";
child(executablePath, function(err, data) {
if(err){
console.error(err);
return;
}
console.log(data.toString());
});
}
</script>
See Question&Answers more detail:os