调用命令行,并自动触发 Ctrl C

admin2021-10-26  201

import console
import process.popen

var prcs = process.popen("ping 127.0.0.1 -n 10 ")
for( all,out,err in prcs.each() ){
    console.log( out,err ); 
    prcs.ctrlEvent(0);
}

console.pause();
转载请注明原文地址: http://www.aardio.net/read-243.html
最新回复(0)
aardio问答
aardio编程语言