获取文件夹下所有文件的路径
2018-09-10 本文已影响0人
冰冰凉3
@echo off & setlocal EnableDelayedExpansion
for /f "delims=" %%i in ('"dir /a/s/b/on ."') do (
set file=%%~fi
set file=!file:/=/!
DEL 路径.txt
echo !file! >> AllfileDir.txt
)
@echo off & setlocal EnableDelayedExpansion
for /f "delims=" %%i in ('"dir /a/s/b/on ."') do (
set file=%%~fi
set file=!file:/=/!
DEL 路径.txt
echo !file! >> AllfileDir.txt
)