thoemmi/7Zip4Powershell — pull request #3 by csharper2010 (2012-11-09 07:14:43+00:00)
Title: Support compressing one or more files or a single directory (implements enhancement for issue #2)

BREAKING CHANGE: renamed parameters

Support compressing a directory
Support compressing multiple files from a directory with a file pattern
(always recursively searches in subfolders for now)
Support compressing multiple file names from pipeline input

Example:
PS D:\test> echo a > a.txt
PS D:\test> echo a2 > a2.txt
PS D:\test> echo b > b.txt
PS D:\test> cd (md sub)
PS D:\test\sub> echo a > a.txt
PS D:\test\sub> echo a2 > a2.txt
PS D:\test\sub> echo b > b.txt
PS D:\test\sub> cd ..
PS D:\test> Compress-7Zip c.7z . a*
5 files found for compression
Compressing a.txt
Compressing a2.txt
Compressing a.txt
Compressing a2.txt
Compression finished
PS D:\test> dir b* -recurse | Compress-7Zip d.7z
2 files found for compression
Compressing b.txt
Compressing b.txt
PS D:\test>