@echo off(for /f "delims=" %%a in ('dir *.* /B') do (echo "%%~dpa" "%%~a"))>LIST.TXT
dir /a-d/s/b >LIST.TXT这个就包含完整的路径