tag:blogger.com,1999:blog-6230024559279811901.post2830383999171547474..comments2023-08-28T14:37:10.715-07:00Comments on I.T. Proctology: Zip files and folders with PowerShellBrianEhhttp://www.blogger.com/profile/09946552115562772058noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6230024559279811901.post-26722245163482005212015-01-23T13:27:30.313-08:002015-01-23T13:27:30.313-08:00Yea, you would handle any of that in your Get-Chil...Yea, you would handle any of that in your Get-ChildItem include or exclude or filter options.<br />There are file, directly, and not empty options just to name a few.BrianEhhttps://www.blogger.com/profile/09946552115562772058noreply@blogger.comtag:blogger.com,1999:blog-6230024559279811901.post-85094784308192350712015-01-23T11:33:23.697-08:002015-01-23T11:33:23.697-08:00I suppose it should be possible to filter out empt...I suppose it should be possible to filter out empty directories before piping it to Add-Zip? if so, any ideas how?dimm0k the drunken dragonhttps://www.blogger.com/profile/05938005464944861720noreply@blogger.comtag:blogger.com,1999:blog-6230024559279811901.post-50576723994496331662015-01-23T10:39:59.442-08:002015-01-23T10:39:59.442-08:00Hmm. I do not know. Zip is file based, so it pres...Hmm. I do not know. Zip is file based, so it preserves the path but I don't know if it will grab just an empty path or not.<br /><br />That is actually a question of the underlying library.BrianEhhttps://www.blogger.com/profile/09946552115562772058noreply@blogger.comtag:blogger.com,1999:blog-6230024559279811901.post-6211931981232817422015-01-23T10:29:18.133-08:002015-01-23T10:29:18.133-08:00wonderful modifications to the original as I was s...wonderful modifications to the original as I was stuck getting it to work properly... is there any way to include empty directories in this as well?dimm0k the drunken dragonhttps://www.blogger.com/profile/05938005464944861720noreply@blogger.comtag:blogger.com,1999:blog-6230024559279811901.post-44353621940218189652014-01-29T05:34:16.097-08:002014-01-29T05:34:16.097-08:00I used your function and it worked beautifully, th...I used your function and it worked beautifully, thanks for posting. Its hard to believe that the native functionality of PowerShell is so limited when it comes to manipulating archive files. Thanks for the solution.Markhttps://www.blogger.com/profile/16664465635725185602noreply@blogger.com