获取目录文件.bat

@echo off & setlocal EnableDelayedExpansion

for /f "delims=" %%i in ('"dir /a/s/b/on *.*"') do (

set file=%%~fi

set file=!file:/=/!

echo !file! >> a.txt

)

猜你喜欢

转载自www.cnblogs.com/noneycn/p/9155183.html
今日推荐