powershell - 为什么 "dir"命令没有向我显示某些文件夹?

标签 powershell cmd dir hidden-files

我在 Windows 命令提示符中使用了 dir 命令来显示目录中的文件/文件夹列表。我注意到它没有显示名为 tmp 的文件夹。但是,我尝试在 Powershell 中运行 dir,它确实在输出中显示了 tmp 文件夹。为什么 Windows 命令提示符向我隐藏了该文件夹?

最佳答案

您需要将“显示隐藏”选项添加到目录:

dir /a

这应该可以解决问题。

source

关于powershell - 为什么 "dir"命令没有向我显示某些文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26006430/

相关文章:

windows - Chef::Exceptions::WindowsNotAdmin:由于缺少管理员权限,无法获取安全信息

c# - 缺少 Win32_Service

windows - 当我尝试在 Windows 上运行 Perl 单行程序时,为什么我得到 "Can' t find string terminator "'“EOF 之前的任何位置 -e 第 1 行”?

python 循环导入并检查变量

Powershell Sort-Object PSCustomObject 以 Object[] 作为值

linux - 将shell脚本转换为Windows命令行或PowerShell

cmd - 将文件复制到同一目录中的多个文件夹

windows - cmd.exe 中区分大小写的目录

matlab - 如何获取 MATLAB 中特定目录中所有目录名称和/或所有文件的列表?