这是别人给写的 就是要这个功能6楼朋友的没有试
@echo off&setlocal enabledelayedexpansion
cd /d "%~dp0"
for /f "delims=" %%a in ('dir /b/ad *') do (
cd /d "%~dp0%%a"
for /f "delims=" %%b in ('dir /b/ad *') do set "_folder=%%b"
move /y *.jpg "%~dp0%%a\!_folder!"
cd /d "%~dp0"
)
exit
我不懂代码 各位赐教