联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
dim wshshell set wshshell=WScript.CreateObject("WScript.Shell") wshshell.Run "C:\WINDOWS\system32\cmd.exe" WScript.Sleep 200 wshshell.SendKeys "edit" WScript.Sleep 200 wshshell.SendKeys "{ENTER}" WScript.Sleep 1000 wshshell.AppActivate "C:\WINDOWS\system32\cmd.exe - edit" WScript.Sleep 2000 Rem 以上都是正常的,能有效地执行,可是下一步就不可以了: wshshell.SendKeys "i"