本帖最后由 terse 于 2014-3-21 13:08 编辑
貌似 没问题
在FOR里 dir 试呢- @echo off&setlocal enabledelayedexpansion
- for %%i in (1 2 3 4 5 6 7 8 9) do md "c:\123\%%i" 2>nul
- for /f "tokens=*" %%i in ('dir /b /a-d *.png') do (
- set ".=%%i"
- copy "%%i" "c:\123\!.:~,1!\%%i"
- )
- pause
复制代码
|