我想使用Test-Path和Resolve-Path来测试文件共享上是否存在子文件夹。首先我在我的机器\ someshare \ somefolder上创建一个共享。然后使用文件浏览器我添加子文件夹,以便整个路径是这样的:\ someshare \ somefolder \子文件夹测试使用子文件夹的UNC路径
Test-Path \\server\someshare results in True
Test-Path \\server\someshare\subfolder results in False
Resolve-Path \\server\someshare results in True
Revolve-Path \\server\someshare\subfolder results in does not exist error
为什么PowerShell不要在子文件夹返回true?
难道是权限问题? – zdan 2011-02-02 23:04:22