// 同時(shí)打開兩個(gè)應(yīng)用程序
var sh = WScript.CreateObject("WScript.Shell");
var path = [
"\"C:\\Program Files (x86)\\DingDing\\DingtalkLauncher.exe\"",
"\"C:\\Program Files (x86)\\Tencent\\WeChat\\WeChat.exe\""
]
try {
for(var i = 0; i < path.length; i++){
sh.run(path[i]);
}
} catch(e) {
WScript.echo(e);
}
// ssh自動(dòng)輸入密碼連接
var sh = WScript.CreateObject("WScript.Shell");
var username = "manson",
password = "manson",
host = "127.0.0.1",
port = "22";
sh.run("ssh " + username + "@" + host + " -p " + port);
WScript.sleep(500);
sh.appActivate("OpenSSH");
sh.sendKeys(password + "{Enter}{Enter}");
更多精彩
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者