0
嗨,我想調用關閉calculator.exe應用程序的事件,但事件本身提高,同時啓動應用程序..任何幫助?節點js窗口子進程退出和關閉事件
var filePath="calc.exe";
var bat = exec(filePath);
bat.on('exit', function() {
alert("exit");
});
嗨,我想調用關閉calculator.exe應用程序的事件,但事件本身提高,同時啓動應用程序..任何幫助?節點js窗口子進程退出和關閉事件
var filePath="calc.exe";
var bat = exec(filePath);
bat.on('exit', function() {
alert("exit");
});
嘗試用 「SIGINT」 代替 「退出」 而不是:
bat.on('SIGINT', function() {
alert("exit");
});
我想這一點,不觸發接近事件 –