#### 批处理命令 获取当前目录下所有文件的路径
@echo off & setlocal EnableDelayedExpansion for /f "delims=" %%i in ('"dir /a/s/b/on *.*"') do ( set file=%%~fi set file=!file:/=/! echo !file! >> 路径.txt )
将 "获取当前目录文件列表.cmd"拷贝到想要获取的目录下,然后双击即可,会在当前目录下生成"路径.txt"
@echo off & setlocal EnableDelayedExpansion for /f "delims=" %%i in ('"dir /a/s/b/on *.*"') do ( set file=%%~fi set file=!file:/=/! echo !file! >> 路径.txt )
将 "获取当前目录文件列表.cmd"拷贝到想要获取的目录下,然后双击即可,会在当前目录下生成"路径.txt"