New
#1
Powershell Expand-archive problem.
I have a line as below in my script.
Expand-Archive .\PR.zip -DestinationPath .\
But it gives an error as below and does not do expand archive.
===
calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell .Archive.psm1:934 char:23
+ ... ipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -Ar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
===
What should I do to make expand-archive to work?