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.
我使用dirWindows 命令提示符中的命令来显示目录中的文件/文件夹列表。我注意到它没有显示名为tmp. 但是,我尝试dir在 Powershell 中运行,它确实tmp在输出中显示了该文件夹。为什么 Windows 命令提示符对我隐藏了这个文件夹?
dir
tmp
您需要将“显示隐藏”选项添加到目录:
dir /a
这应该可以解决问题。
资源
试试attrib /?。EG attrib c:\folder\tmp /d。
attrib /?
attrib c:\folder\tmp /d
在 Windows 中,前导点没有任何意义。