排版问题,我单独写一下写的 vbs 内容
Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd.exe"
WScript.Sleep 1500
WshShell.SendKeys "ssh
[email protected]"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "CHENyyrui*102437"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "cd /vmfs/volumes/datastore/UPS"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "sh
test.sh"
WshShell.SendKeys "{ENTER}"