CSDN 一键获取当前目录及子目录下所有文件名脚本 百度百科 怎么使用Bat脚本批量提取文件名
dir *.*/b>a.txt
@echo off dir /s/b *.* > file_names.txt exit