如何获取没有文件的文件夹和子文件夹的列表 [英] How do i get a list of folders and subfolders without the files
本文介绍了如何获取没有文件的文件夹和子文件夹的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行dir / s / b / o:n>我尝试打印一个目录的文件夹和子文件夹的列表到文件。 f.txt我也得到一个文件的列表。
我只需要文件夹和子文件夹。
任何人都知道这可以通过命令行界面来完成。
解决方案
尝试此操作:
dir / s / b / o:n / ad& f.txt
I am trying to print a list of the folders and subfolders of a directory to a file.
When i run dir /s/b/o:n > f.txt i get a list of the files also.
I only need the folders and sub folders.
Anyone know is this possible to do this from command line interface?
解决方案
Try this:
dir /s /b /o:n /ad > f.txt
这篇关于如何获取没有文件的文件夹和子文件夹的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文