Node.js child_process run os command

Description

Node.js child_process run os command


var exec=require('child_process').exec;

exec('dir /', function(err,out){
  if (err) throw err
  console.log(out);//  w  ww. ja v  a2s  .c o m
});



PreviousNext

Related