SELECT Attributes, Name, CreationTime

问题描述 投票:0回答:1

嗨 :) 我的问题是:我想看看我的NAS有多少个子文件夹。

Get-ChildItem -Path \\<#NASIP#>\ | SELECT Attributes, Name, CreationTime | Format-Table -AutoSize;

我可以扩展这个命令,这样我就可以知道最后有多少个子文件夹(例如 "8")。但现在这个命令并不能像预期的那样工作。

Get-ChildItem : The path "\\<#NASIP##>\" cannot be found, because it does not exist.

如果我现在指定一个子文件夹,例如图片。 \`<#NASIP#>\pictures

                Attributes Name           CreationTime
                ---------- ----           ------------
System, Directory, Archive xxxxxx         xxxxxxxxxx 15:26:37
        Directory, Archive xxxxxx         xxxxxxxxxx 20:51:17
        Directory, Archive xxxxxx         xxxxxxxxxx 11:35:26
        Directory, Archive xxxxxx         xxxxxxxxxx 21:19:19

命令工作没有任何问题,我得到的一切输出正确的。有人知道这可能是什么?

问候扎拉

powershell nas
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.