miaojiahong 当前离线
列兵
call G:\archive_byday.bat G:\New\*.jpg G:\New SET SRC_NAME=%1 SET DST_NAME=%2 SET DATESTR=%date:~0,4%%date:~5,2%%date:~8,2% md %DST_NAME%%DATESTR% move %SRC_NAME% %DST_NAME%%DATESTR%复制代码
评分人数
TOP
gawk 当前离线
少将
@echo off set "DST_NAME=G:\New" set "DATESTR=%date:~0,4%%date:~5,2%%date:~8,2%" md "%DST_NAME%%DATESTR%" for /f "delims=" %%i in ('dir /b /s /a-d "*.jpg"') do ( move /y "%%i" "%DST_NAME%%DATESTR%" ) pause复制代码