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.
在 Windows 命令外壳中cmd,有没有办法C:> dir /s但只能访问 n 个子目录?
cmd
C:> dir /s
在我看来,我过去曾做过这项工作,尽管我可能已经用某些细胞损伤液体破坏了我大脑中的那个部分......:P
我想我可以将输出重定向到日志中,然后用 findstr 或 qgerp 浏览它,但似乎应该有一种更清洁的方式。
“更清洁的方式”?使用诸如“dir”之类的 DOS 命令?你有一种干巴巴的幽默感,那里;)
你可以做一个“dos/?” 查询可用选项。“使用 /s 将递归限制为 'n' 个目录”绝对不是其中之一。
如果你想这样做,你需要编写自己的程序......或重定向到文本文件并解析文件。