@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"
时间: 2024-10-08 01:43:50
@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"