我正在尝试将 PC 上存在的 zip 文件提取到另一台具有共享文件夹的 PC。
我正在运行这个:
powershell Expand-Archive -Path C:\test.zip -DestinationPath \\TEST\TEST1 -Force
但是得到这个错误,有什么想法吗?
New-Item : The path is not of a legal form.
At C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:315 char:32
+ ... eatedItem = New-Item -Path $DestinationPath -ItemType Directory -Conf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (\\TEST\TEST1:String) [New-Item], ArgumentException
+ FullyQualifiedErrorId : CreateDirectoryArgumentError,Microsoft.PowerShell.Commands.NewItemCommand