- @echo off&setlocal enabledelayedexpansion
- for /l %%a in (1,1,9) do (ren "DSC%%a.jpg" "DSC000%%a.jpg" 2>nul)
- for /l %%a in (10,1,99) do (ren "DSC%%a.jpg" "DSC00%%a.jpg" 2>nul)
- for /l %%a in (100,1,999) do (ren "DSC%%a.jpg" "DSC0%%a.jpg" 2>nul)
- pause
复制代码
|