楼上正解!
改成- @echo off
- setlocal enabledelayedexpansion
- set SRC=%userprofile%\Local Settings\Temporary Internet Files\wjpsky*.png
- set DEST=C:\wjpsky\report
- for /f "delims=" %%f in ('dir /s /b "%SRC%"') do
- (
- set /a n=n+1
- copy /Y "%%f" "%DEST%!n!.png"
- )
- pause>nul
复制代码 或- @echo off
- set SRC=%userprofile%\Local Settings\Temporary Internet Files\wjpsky*.png
- set DEST=C:\wjpsky\report
- for /f "delims=" %%f in ('dir /s /b "%SRC%"') do
- (
- set /a n=n+1
- call, copy /Y "%%f" "%DEST%%%n%%.png"
- )
- pause>nul
复制代码
|