【发布时间】:2022-08-02 20:18:52
【问题描述】:
我希望命令 DIR 显示目录上的所有文件(包括隐藏文件)。
我怎么做?
我试过了:
dir ./d
dir ./a
dir /ad
dir \\h
...以及这些的许多变体。
有什么帮助吗?
谢谢
标签: windows cmd command-line directory ls
我希望命令 DIR 显示目录上的所有文件(包括隐藏文件)。
我怎么做?
我试过了:
dir ./d
dir ./a
dir /ad
dir \\h
...以及这些的许多变体。
有什么帮助吗?
谢谢
标签: windows cmd command-line directory ls
尝试以下操作:
dir /s /b /o:gn
/s - displays all files in the specific directory + subdirectories.
/b - strips heading information and summary from the output.
/o - sort the files in the list, followed by :gn - G排序第一个文件夹,然后是文件。n将它们按字母顺序排列。
【讨论】: