I have a .zip
file and need to unpack its entire content using Powershell. I'm doing this but it doesn't seem to work:
$shell = New-Object -ComObject shell.application
$zip = $shell.NameSpace("C:a.zip")
MkDir("C:a")
foreach ($item in $zip.items()) {
$shell.Namespace("C:a").CopyHere($item)
}
What's wrong? The directory C:a
is still empty.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…