【プロセス起動】
-
[exec]
構文
const childProcess = exec('cd', ['../test/put.bat',], {cwd: './',});
-
[spawn]
構文
const childProcess = spawn('cd', ['../test/put.bat',], {cwd: './', detached: false, shell: true,});
どうもoptions(第3引数)のshell定義が無いと、コマンドの挙動が見えない。