How to read contents of a csv file inside zip file using PowerShell
问题 I have a zip file which contains several CSV files inside it. How do I read the contents of those CSV files without extracting the zip files using PowerShell? I having been using the Read-Archive Cmdlet which is included as part of the PowerShell Community Extensions (PSCX) This is what I have tried so far. $path = "$env:USERPROFILE\Downloads\" $fullpath = Join-Path $path filename.zip Read-Archive $fullpath | Foreach-Object { Get-Content $_.Name } But when I run the code, I get this error