[英]batch list all .xls files in folder
I have following batch files to list all the excel files in my folder: 我有以下批处理文件来列出文件夹中的所有excel文件:
for /r %%i In (*.xls) DO echo %%i
However, this will also include all excel files in subfolders of my current folder. 但是,这还将包括我当前文件夹的子文件夹中的所有excel文件。 How can I prevent that? 我该如何预防? I only want the files in the folder itself, not the subfolder. 我只希望文件夹本身中的文件,而不是子文件夹中的文件。
PFF,愚蠢的问题,愚蠢的答案:只需删除/ r
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.