最好带扩展名,(例 .txt)如果没有,去掉就好了。
@echo offset EE=.txtfor /f "tokens=1,* delims=," %%i in ('dir /a-d/b *%EE%') do (echo "%%~nxi"if not exist "%%~nxi" (md "%%~nxi")move "%%i,%%j" "%%~nxi\" >nul)pause