I am pretty new to powershell and I have a folder (c:\temp) with .zip drives. I am pretty sure I already unzipped them by doing
$shell = new-object -com shell.application
$zip = $shell.NameSpace(“C:\temp”)
foreach($item in $zip.items())
{
$shell.Namespace(“C:\temp”).copyhere($item)
}
I know I get copies by doing that, but besides wasting time/memory it is not the biggest of issues. My next goal is to make a variable $x that stores all the *.dll files which are located in multiple .zip drives. Some .zip files have 3 .dll files and other .zip files have none, but I need to be able to store each file.
Finally, I still have powershell 2.0 due to company restrictions.