sjsbaocheng 当前离线
列兵
TOP
loquat 当前离线
二级士官
@echo off md e:\新建文件夹 for /f %%a in ('dir /a-d /b /s "h:\*.jpg"') do ( move %%a e:\新建文件夹\%%a复制代码
set tm1=%time:~0,2% set tm2=%time:~3,2% set tm3=%time:~6,2% echo %tm1%:%tm2%:%tm3% echo %date%复制代码
@echo off set /p 我的U盘盘符= md e:\新建文件夹 for /f %%a in ('dir /a-d /b /s "%我的U盘盘符:\*.jpg"') do ( move %%a e:\新建文件夹\%%a复制代码
apang 当前离线
上将
@echo off&setlocal enabledelayedexpansion set d=!date:~2,8!&set d=!d:/=.!&set d=!d:-=.! md e:\!d! 2>nul for /f "delims=" %%a in ('wmic logicaldisk where ^(drivetype^="2"^) get deviceid^|find ":"') do ( set drv=%%a for /f "delims=" %%b in ('dir /a-d /b /s "!drv:~,2!\*.jpg"') do ( move "%%b" e:\!d!\ ) ) pause复制代码
冷玉公子 当前离线
三级士官
@Echo Off For /R 目录 %%A In (*.jpg) Do Move /Y %%A E:\ Pause>Nul复制代码
@echo off set date1=%date:~2,2% set date2=%date:~5,2% set date3=%date:~8,2% set dot="." md e:\%date1%%dot%%date2%%dot%%date3% set /p 我的U盘盘符= for /f %%a in ('dir /a-d /b /s "%我的U盘盘符:\*.jpg"') do ( move %%a e:\%date1%%dot%%date2%%dot%%date3%\%%a复制代码