dir /b /o-n "*DBR_INV*" > list.txt
@Echo Off&Setlocal Enabledelayedexpansion
For /f "delims=" %%i in (list.txt) do (
Set /a n+=1
If !n!==1 DEL C:\Users\andy7333\Desktop\A\%%i
If !n!==1 COPY C:\Users\andy7333\Desktop\%%i C:\Users\andy7333\Desktop\A\
)
Pause
沒有留言:
張貼留言