- @echo off&setlocal enableDelayedExpansion
- set "r=源完整路径"
- set "s=目标完整路径"
- for /f "delims=" %%a in ('dir /tc "%r%\*.pdf"') do (
- set "a=%%a"
- if "!a:~0,1!" neq " " for /f "tokens=1,5* delims=- " %%b in ("!a!") do (
- if not exist "%s%\%%b\" md "%s%\%%b\"
- move "%r%\%%d" "%s%\%%b\"
- ))
复制代码
[ 本帖最后由 hanyeguxing 于 2011-1-6 12:05 编辑 ] |