生成获取当前文件夹下所有文件名称的bat文件,并把文件名写到一个本文文档里
时间: 2023-10-04 17:11:06 浏览: 104
获取当前文件夹的所有文件名.bat
@echo off
setlocal EnableDelayedExpansion
set "folder=%cd%"
set "output=output.txt"
dir /b "%folder%" > "%output%"
echo "All file names in %folder% have been written to %output%."
阅读全文