我不大明白你的意思,按照我的理解我写了一个,你把这个bat置于要处理的文件夹下,双击就好了@echo offecho.>all.txtfor /f "delims=" %%i in ('dir /b *') do (echo "%%~dpi"+"%%~ni">>all.txt)
@echo offfor /f "delims=" %%a in ('dir/s/b/a-d') do echo %%~dpa+%%~nxa >>all.txtpause