- Dim strPrgpth
- strPrgpth = """%WinDir%\NOTEPAD.EXE"""
- Set wshshell = CreateObject("wscript.shell")
- Set oexec = wshshell.exec(strPrgpth)
-
- t = Timer
- Do While Timer - t < 5
- wscript.sleep 1000
- wshshell.Sendkeys "{ENTER}"
- wscript.sleep 3000
- wshshell.Sendkeys "{ENTER}"
- loop
- oexec.Terminate
复制代码
|