zhangzhi 当前离线
列兵
@echo off setlocal enabledelayedexpansion for /r %%i in (*.*) do ( set s=%%i set s=!s:%~dp0=! echo !s!)复制代码
pcl_test 当前离线
荣誉版主
@echo off cd /d "E:\a\" >"content.txt" findstr /ms . *.* pause复制代码
评分人数
TOP
flyinnet9 当前离线
少尉
@echo off setlocal enabledelayedexpansion set p=%cd% for /f "tokens=1 delims=" %%a in ('dir /s /b /a-d *.*') do ( set "f=%%a" set "f=!f:%p%=!" set "f=!f:\=/!" echo !f! >>content.txt )复制代码
>"content.txt" (findstr /ms . *.*|findstr /iv "\.meta$")复制代码
@echo off @echo off&setlocal enabledelayedexpansion cd /d "E:\a\" (for /f "delims=" %%a in ('findstr /ms . *.*^|findstr /iv "\.meta$"') do ( set str=%%a echo;/!str:\=/!))>"content.txt" pause复制代码