Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Write-Zip Problems

$
0
0

Hi,

Maybe this is not possible with Write-Zip ; hopefully I'm wrong.

I have a collection of folders, each of which may contain a hundred or more child folders and files.

I simply wish to use Powershell to zip the entire folder. I could not care less about preserving paths or anything like that.

All I want is the same effect as right-clicking on the folder and choosing "Send to ZIP". All my efforts with write-zip so far have led to each file inside the folder being individually zipped, which is useless.

Would be grateful for any suggestions.

Thanks,

Stuart





Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>