How to zip large number of files in a folder into individual zip files

preview_player
Показать описание
#powershell #7zip #zip
I had to zip 1000 plus files in a folder to individual zip and move them to a different archive folder. Powershell helps you to do that in 3 lines.
Рекомендации по теме
Комментарии
Автор

Thank you so much. This is helping me batch compress hundreds of files.

MakotoHawkins
Автор

It works thanks a lot, also a small suggestion, please paste the command in the description it will help Rookies like me.

harishmurthy
Автор

$files = Get-ChildItem
foreach ($file in $files)
{ Compress-Archive -path $file.Name -destinationPath "$($file.BaseName).zip"
}

the first command for who needs

catuesuol