I am looking for a command line command to comress a file.
I want to compress each file individually to filename.zip.
all the methods that I found including:
http://exchangeserverpro.com/powershell-script-iis-logs-cleanup/
and:
are near by but not exactly what I need. any suggestion?
if it possible, I would like it to happen wthout external software (like 7-zip).
it can be a power shell script.
Best Answer
There is a single, simple cmd.exe command for this. (Through PowerShell v5.0+)
To zip:
To unzip:
Sources:
Compress-Archive
Expand-Archive
Special thanks to @Ramhound