回复 6# haichuan5121
帮你把打包的功能去掉了- @echo off
- set "NewFolder=D:\新文件夹"
- if not exist "%NewFolder%\" (
- md "%NewFolder%"
- )
- for /d /r E:\ %%a in (*) do (
- call :latest "%%a"
- )
- pause
- goto :eof
-
- :latest
- for /f "delims=" %%a in ('dir /a-d /b /o-d /tw "%~1" 2^>nul') do (
- copy /y "%~1\%%a" "%NewFolder%"
- goto :eof
- )
复制代码
|