方法1:(node-cmd)
var cmd=require(‘node-cmd’);
function check(p1,p2,callback){
cmd.run('ShapeDescriptor.exe --in ‘+p1+’ --out ‘+p2+’ ');
cmd.get(
‘run run_exe’,
function(data){
callback();
}
);
}
方法2:(child_process)
方法1:(node-cmd)
var cmd=require(‘node-cmd’);
function check(p1,p2,callback){
cmd.run('ShapeDescriptor.exe --in ‘+p1+’ --out ‘+p2+’ ');
cmd.get(
‘run run_exe’,
function(data){
callback();
}
);
}
方法2:(child_process)