var shell = new ActiveXObject('WScript.Shell'); shell.run('java -version' , 0, true );
これを実行するとどういうわけか
Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. fatal: Not a git repository (or any of the parent directories): .git C:\test\test.js(2, 1) (null): エラーを特定できません
なぜ Git が・・・・。
ちなみに java
ではなく notepad
とかなら問題ない。Javaが何かしてんのかなあ。
var shell = new ActiveXObject('WScript.Shell'); shell.run('cmd /c java -version' , 0, true );
これならいける。