4
脚本中的路径错误
我正在使用谷歌搜索脚本来查找PS脚本来计算我们网络上几个目录中的文件类型和文件。 在我工作的PC上的“库”目录中有几个目录。 我只是想测试一个PS脚本来使这个工作来计算文件并列出我的“Libraries \ Documents \ Tidbits”文件夹中的文件类型: Get-ChildItem \\hilltop3\users$\LongRandy\My Documents\TIDBITS 但我得到这个错误: Get-ChildItem : Cannot find path '\\hilltop3\users$\LongRandy\My' because it does not exist. At line:1 char:14 + Get-ChildItem <<<< \\hilltop3\users$\LongRandy\My Documents\TIDBITS + CategoryInfo : ObjectNotFound: (\\hilltop3\users$\LongRandy\My:String) [Get-ChildItem], ItemNotFoundExc eption + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand" 再次感谢