本帖最后由 pcl_test 于 2015-3-1 09:18 编辑
回复 11# qq544935474 - @echo off
- setlocal enabledelayedexpansion
- set n=1
- for /r "d:\1\" %%i in (*.tm6) do (
- if exist "%%i" if not exist "e:\1\%%~nxi" (
- move "%%i" "e:\1\"
- )
- if exist "%%i" if exist "e:\1\%%~nxi" (
- call :aa %%i
- )
- )
- pause & exit
- :aa
- for /l %%a in (1 1 1000) do (
- if not exist "e:\1\%%~ni(%%a)%%~xi" (
- move "%%i" "e:\1\%%~ni(%%a)%%~xi"
- goto :eof
- )
- )
复制代码
|