Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //&cls&node %0&pause > nul&exit /b 0
- var cp = require('child_process');
- var p = console.log;
- function $(a){
- r = ""+cp.execSync(a);
- p("$ "+a+"\n => "+r);
- return r;
- }
- $( "echo test" );
- ret = $( "node -v" );
- p( "nodejsバージョン:" + ret.match( /[0-9\.]+/ )[0]);
- p("\n引数:"+ process.argv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement