forfiles 当前离线
少将
tree /f C:\ >D:\list.txt复制代码
TOP
@echo off (for /f "delims=" %%i in ('dir /b /a-d /s "%cd%"') do echo %%~fi)>target.txt复制代码