77七 当前离线
中校
TOP
@echo off rem "http://www.bathome.net/redirect.php?goto=findpost&ptid=36991&pid=173326" cd /d "d:\A" for /r %%i in (*) do ( set "strName=%%~nxi" & set "n=" call :CP "%%i" ) pause & exit :CP if not exist "d:\B\%strName%" move "%~1" "d:\B\%strName%" & goto :EOF if exist "d:\B\%strName%" set /a n+=1 set "strName=%~n1(%n%)%~x1" goto :CP复制代码
http://bbs.bathome.net/redirect.php?goto=findpost&ptid=36991&pid=281494复制代码