[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
这问题不应发这里吧。。。
  1. for %%a in (a b c d e f g h i j k l m n o p q r s t u v w  x y z) do (
  2.       if exist %%a:\ (
  3.          fsutil fsinfo drivetype %%a:|findstr "可移动">nul&&(
  4.             attrib -h -s -r %%a:\autorun.inf 2>nul
  5.             del /s %%a:\autorun.inf 2>nul
  6.             md %%a:\autorun.inf&attrib +h +s +r +a %%a:\autorun.inf
  7.       )
  8.     )
  9. )
  10. echo  Completed...
  11. pause>nul
复制代码
以上,只是删除autorun.inf
如果还要删除recycled 只需在del/s %%a:\autorun.inf 2>nul的下一行加上这两句:
attrib -h -s -r %%a:\recycled 2>nul
rd /s /q %%a:\recycled 2>nul
心绪平和,眼藏静谧。

TOP

返回列表