Microsoft.PowerShell.Archive icon indicating copy to clipboard operation
Microsoft.PowerShell.Archive copied to clipboard

Add support for extracting single files

Open nlsdg opened this issue 9 years ago • 1 comments

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

nlsdg avatar Nov 11 '16 14:11 nlsdg

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 ;)

ArieHein avatar Nov 11 '16 19:11 ArieHein