در این بخش نحوه فشرده سازی هر پوشه به نحوی که فایل های فشرده به صورت جداگانه  و مستقل باشند آموزش داده می شود. گاهی پیش می آید که بخواهید چندین پوشه را فشرده سازی کنید نه به صورتی که همه در یک فایل فشرده قرار بگیرد. راه مرسوم و معمولی اینه که چندین فایل فشرده به صورت پارت های مختلف ایجاد میشه اما عیب این کار اینه که فایل های فشرده شده به هم وابسته اند و مستقل از هم نیستند اما در اینجا می خواهیم با برنامه حرفه و رایگان فشرده ساز سون زیپ 7zip این کار رو انجام بدیم.
برای دانلود سون زیپ یکی از لینک های زیر را انتخاب کنید:
در ابتدا باید برنامه سون زیپ رو نصب کنید. برنامه را حتما در مسیر پیشفرض نصب کنید:
مسیر پیشفرض نصب سون زیپ:
C:\Program Files\7-zip\7z.exe

برنامه Notepad را باز کنید و کد روبرو را درون آن کپی کنید

for /d %%X in (*) do “c:\Program Files\7-Zip\7z.exe” a “%%X.7z” “%%X\
در صورتی که می خواهید فایل های شما به جای فرمت 7z با فرمت zip ذخیر شود به جای کد بالا از کد زیر استفاده کنید
for /d %%X in (*) do “c:\Program Files\7-Zip\7z.exe” a  “%%X.zip” “%%X\
از منوهای Notepade فایل را بزنید و Save as انتخاب کنید و اسم فایل را foldertomultiple7z.bat و گزینه save as type  را بر روی All Files بگذارید و فایل را در جای مشخصی ذخیره کنید.
فایل بوجود آمده را در هر جایی که می خواهید پوشه هاشو به صورت فشرده در بیارید، قرار بدید و اجرا کنید.

How to Use 7Zip to Create Multiple Compressed Folders in One Go

This article will show you how to use the free software 7zip to create multiple compressed folders in one go. This may come in handy for times when you are backing up your computer files or for whenever you need to compress a lot of file folders in general. This method involves using 7zip in a Windows batch file.
1. Install 7zip. If you let it install in its default setting it should typically be in “C:\Program Files\7-zip\7z.exe.”
2. Fire up Notepad. You won’t need to use 7zip’s graphical user interface, so no need to run it after installing.
3. In Notepad, insert this single line of code: for /d %%X in (*) do “c:\Program Files\7-Zip\7z.exe” a “%%X.7z” “%%X\”
4. Note: If you’d like to output to .ZIP files, change the “%%X.7z” to “%%X.zip”
5. Click ‘File’ then ‘Save As’.
6. Browse to the location of the folders you want to compress.
7. Create your very own batch file by setting ‘Save as type’ to ‘All files’ and naming it something like ‘foldertomultiple7z.bat’. Take note of the file extension, which is .bat. Be sure not to set the file type as ‘Text Documents’ too.
8. Click Save.
9. Close Notepad and navigate to your folder. Notice that the batch file is at the same directory level as the folders that need to be compressed.
10.Run the batch file by double-clicking on your bat file within your folder. DO NOT run as Administrator

دانلود فایل تکمیل شده این آموزش