ActiveXObject是IE的東西,你在node里要用child_process,例如varspawn=require('child_process').spawn,call=spawn('cmd.exe',['/c','echo','echosomething']);call.stdout.on('data',function(Q){console.log(Q.toString())}
)call.stderr.on('data',function(Q){console.log('error',Q.toString())}
)call.on('exit',function(Code){console.log('Exited',Code)})