@echo offrem 指定存放文件的目录set FolderName=C:\LILYQAP2004for /f "delims=\" %%a in ('dir /b /a-d /o-d "%FolderName%\*.*"') do ( echo "%FolderName%\%%a")pause
有用