命令列出文件夹中的所有文件以及Windows中的子文件夹 [英] Command to list all files in a folder as well as sub-folders in windows

查看:248
本文介绍了命令列出文件夹中的所有文件以及Windows中的子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用命令提示符命令搜索可以列出目录中所有文件以及子文件夹的命令。
我已经阅读了 dir命令的帮助,但找不到我想要的东西。
请帮助我什么命令可以得到这个。

I tried searching for a command that could list all the file in a directory as well as subfolders using a command prompt command. I have read the help for "dir" command but coudn't find what I was looking for. Please help me what command could get this.

推荐答案

下面的文章为您提供了解决方案。

The below post gives the solution for your scenario.

dir /s /b /o:gn






/ S 显示指定目录和所有子目录中的文件。


/S Displays files in specified directory and all subdirectories.

/ B 使用纯格式(无标题信息或摘要)。

/B Uses bare format (no heading information or summary).

/ O 文件排序。

这篇关于命令列出文件夹中的所有文件以及Windows中的子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆