获取目录文件.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

)

posted @ 2018-06-08 13:38  Noney  阅读(291)  评论(0编辑  收藏  举报