Expand-Archive FlattenPaths

Aug 23, 2010 at 11:41 PM

I'm trying to extract all *.ps1 files from an archive then expand those files without the directory. But it doesn't seem to be working. All the folders in the zip are being created. What am I doing wrong?

 

Read-Archive .\Test.zip | ?{$_.Name -like "*.ps1"} | Expand-Archive -FlattenPaths -OutputPath "C:\Test"