Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要编写一个批处理文件,它将:
我可以找到有关如何从文本文件中读取的说明,也可以找到有关如何在目录中读取文件名的说明,但我似乎无法让这两个函数一起工作!
尝试这个:
@echo off set "logfile=x:\path\filelist.txt" for /f "delims=" %%i in (folderlist.txt) do ( cd /d "%%~i" dir /b /a-d >>"%logfile%" )