Board logo

标题: [文件操作] 批处理遍历硬盘所有文件及文件夹 [打印本页]

作者: ex_heyh    时间: 2013-11-7 22:33     标题: 批处理遍历硬盘所有文件及文件夹

RT,刚接触批处理,求教:如何遍历硬盘的所有文件即文件夹,并对每个文件及文件夹执行efs解密操作.
解密语法:
  1. cipher/d/a d:\ichat.txt
复制代码

作者: foxJL    时间: 2013-11-7 23:09

  1. @echo off
  2. for /f "delims=" %%i in ('dir /b /s d:\') do (cipher/d/a "%%i")
  3. pause
复制代码

作者: DAIC    时间: 2013-11-8 07:51

回复 2# foxJL
  1. cipher /d /s C:\
  2. cipher /d /s D:\
  3. cipher /d /s E:\
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2