遞迴訪問目錄樹中的目錄
for /r 命令可用於遞迴訪問目錄樹中的所有目錄並執行命令。
@echo off
rem start at the top of the tree to visit and loop though each directory
for /r %%a in (.) do (
  rem enter the directory
  pushd %%a
  echo In directory:
  cd
  rem leave the directory
  popd
  )
筆記: