Summary: Learn how to use Windows PowerShell to read the content of a .zip file.
How can I read the content of a .zip file from within Windows PowerShell?
Use the OpenRead static method from the IO.Compression.ZipFile .NET Framework class.
First, you will need to load the assembly that contains the class. Here is an example:
Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::OpenRead("E:\Ch10.zip").Entries.Name
0 comments