DCSIMG
PSCX - Shay Levy

Shay Levy

If you repeat it, PowerShell it!

News


btn_donate_LG

View Shay Levy's profile on LinkedIn Follow Shay Levy at Twitter Shay Levy's Facebook profile Subscribe to my FriendFeed


site statistics




Browse by Tags

All Tags » PSCX (RSS)
Write-Zip files
The other day I was trying to use the PowerShell Community Extensions (PSCX) Write-Zip cmdlet to archive my local scripts folder, but when I opened the compressed file I could see that all the folders, and subfolders were stored at the root level even though I didn't use the -FlattenPaths parameter. This is the command I used: PS > dir d:\scripts -rec | Write-Zip -level 9 -IncludeEmptyDirectories -OutputPath D:\Scripts.zip Why is that? Unfortunately, when binding from input objects, Write...