Microsoft.PowerShell.Archive
Microsoft.PowerShell.Archive copied to clipboard
Add support for extracting single files
Expand-File extracts all the files in an archive. Sometime you just want one or a few files. Please add a parameter to select which files to extract. Preferably something that accepts wildcards. Something like -Files *.txt
Going over the code, it shouldn't be hard to implement.
Just note that a zip file may not necessarily be flat, it may contain a very complex folder structure, which in term means the time to extract just the specific file/s or extensions will increase. The wilder the wildcards are, the longer, as they say ;)