即時尋找一個簡單的代碼添加到這個退出程序由VBS腳本相同的腳本打開關閉程序
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run("powershell.exe")
wscript.sleep 2
wshshell.AppActivate "powershell"
wscript.sleep 145
wshshell.sendkeys"ipconfig /all > C:\Users\Public\file.txt"
wshshell.sendkeys"~"
wscript.sleep 300
wscript.sleep 145
wshshell.sendkeys"cls~"
你在這個腳本中的目標是什麼?運行Powershell並關閉它? – Hackoo
抱歉,因爲我的家人出現緊急情況。是的,那是我的目標。 – user3802783