Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 文件计数powershell vs explorer_Windows_Powershell - Fatal编程技术网

Windows 文件计数powershell vs explorer

Windows 文件计数powershell vs explorer,windows,powershell,Windows,Powershell,使用以下脚本计算文件会给windows资源管理器提供不同的答案吗 获取Childitem-Recurse-Attributes!目录+!System+Encrypted-Path'C:\Path\To\Folder'|度量对象|%{$\u0.Count} 1032个文件 Windows资源管理器属性 1041个文件 为什么?隐藏属性如何?您的资源管理器似乎配置为显示您在powershell命令中排除的文件类型。检查哪些文件未包括在内,您将很快得到答案。

使用以下脚本计算文件会给windows资源管理器提供不同的答案吗

获取Childitem-Recurse-Attributes!目录+!System+Encrypted-Path'C:\Path\To\Folder'|度量对象|%{$\u0.Count}

1032个文件

Windows资源管理器属性

1041个文件


为什么?

隐藏属性如何?您的资源管理器似乎配置为显示您在powershell命令中排除的文件类型。检查哪些文件未包括在内,您将很快得到答案。