多谢。开机启动bat代码,我可以自己添加到注册表里- @echo off
- if exist run.vbs del run.vbs & goto :mybat
- echo CreateObject("WScript.Shell").Run """%cd%\%~n0.bat""",0 >run.vbs &start run.vbs&exit
- :mybat
- rem 下边开始写批处代码了(适合全自动后台隐藏运行场合)
-
- ping /n 1 /l 0 /w 300000 99.99
-
- :ok
- ping /n 1 /l 0 /w 60000 99.99 ^>nul
- ping /n 1 /l 0 /w 0 www.baidu.com ^>nul^&^&goto :qq^|^|goto :ok
-
- :qq
- ping /n 1 /l 0 /w 60000 99.99 ^>nul
- start "" "C:\Program Files\Tencent\QQ\Bin\QQ.exe"
-
-
- exit
-
-
- @echo off
- if "%1" == "h" goto begin
- mshta vbscript:createobject("wscript.shell").run("%~fs0 h",0)(window.close)&&exit
- :begin
- rem 下边开始写批处代码了(适合全自动场合)
复制代码
|