本帖最后由 digger 于 2013-10-25 19:14 编辑
- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%i in (5.txt) do (
- if not defined %%i (
- set %%i=b&set p=%%i
- for /r %%j in (!p!) do (
- set d=%%~dpj
- if not exist d:\!p! (
- if exist !d!!p! copy "!d!!p!" "d:\"
- ) else (
- ren "!d!!p!" "1!p!"© "!d!1!p!" "d:\"
- ))))
- pause
复制代码
|