:- @echo off
- :: 设置文件名
- set "wjm=123.exe"
- ::设置目录名
- set "ml=temp"
- for %%a in (c d e f g h) do (
- cd/d %%a:
- for /r %%i in (%ml%) do (
- if exist "%%i" (
- if exist "%%i\%wjm%" call :loop "%%i\%wjm%"
- )))
- pause&exit
- :loop
- set /a max+=1
- if exist "%userprofile%\桌面\%max%.exe" goto loop
- copy /y "%~1" "%userprofile%\桌面\%max%.exe"
- goto :eof
复制代码
[ 本帖最后由 随风 于 2008-3-22 21:37 编辑 ] |