aerchi 当前离线
列兵
set file=c:\aa\bb\aer.txt set str=%file% :loop set str=%str:*\=% echo %str% | findstr /i "\\" >nul && goto loop echo %file% ---^> %str% pause复制代码
apang 当前离线
上将
@echo off for /f "delims=" %%a in ("c:\aa\bb\aer.txt") do echo %%~dpa pause复制代码
@echo off call :loop "c:\aa\bb\aer.txt" pause&goto :eof :loop echo %~dp1复制代码
TOP