
CODE: [Copy to clipboard]@echo off&setlocal enabledelayedexpansion
for /f "tokens=1-3,*" %%a in ('dir /a-d /s /tc^|findstr ":"^|findstr /i /v "总数"') do (
set "fullname=%%a %%b %%c %%d"
if "!fullname:~1,1!"==":" (set "path1=!fullname!"
for /f "delims=的" %%i in ("!path1!") do (
set "path2=%%i"
set "path2=!path2:~0,-1!"
if "!path2:~-1!"=="\" set "path2=!path2:~0,-1!"
)
)
if not "!fullname!"=="!path1!" echo %%a %%b %%c !path2!\%%d >>tmp.txt
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |