本帖最后由 hongrk 于 2019-6-5 15:35 编辑
- @echo off
-
- (echo set wshell=createobject^("wscript.shell"^)
- echo wshell.run "http://www.baidu.com/",1
- echo for i=1 to 3
- echo wscript.sleep 10000
- echo wshell.sendkeys "{F5}"
- echo next
- )>"c:\test.vbs"
-
- start c:\test.vbs
- ping 127.0.0.1 -n 5 >nul 2>nul
- del /f /q c:\test.vbs
复制代码
|