General ZIP (compress) Files and Folders in Windows 11


  • Staff
ZIP_banner.png

Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you work with zipped files and folders in the same way that you work with uncompressed files and folders. Combine several files into a single zipped folder to more easily share a group of files.

See also:

This tutorial will show you how to ZIP files in Windows 11.


An empty folder will not be zipped.


If you ZIP an EFS encrypted file, the file inside the ZIP will no longer be encrypted.



Contents

  • Option One: ZIP File(s) and Folder(s) using Context Menu
  • Option Two: ZIP File(s) and Folder(s) using Send To Context Menu
  • Option Three: ZIP File(s) and Folder(s) using File Explorer Command Bar
  • Option Four: ZIP File(s) and Folder(s) using Command




Option One

ZIP File(s) and Folder(s) using Context Menu


1 Select one or more files(s) and/or folder(s) you want to ZIP.

2 Right click or press and hold on the selected item(s).

3 Click/tap on Compress to ZIP file. (see screenshot below)

Compress_to_ZIP_file_context_menu.png

4 Type a name you want for the ZIP file. (see screenshot below)

ZIP_name.png




Option Two

ZIP File(s) and Folder(s) using Send To Context Menu


1 Select one or more files(s) and/or folder(s) you want to ZIP.

2 Right click or press and hold on the selected item(s).

3 Click/tap on Show more options (Shift+F10). (see screenshot below)

Show_more_options.png

4 Click/tap on Send to, and click/tap on Compressed (zipped) folder. (see screenshot below)

Send_to_Compressed_zipped_folder.png

5 Type a name you want for the ZIP file. (see screenshot below)

ZIP_name.png




Option Three

ZIP File(s) and Folder(s) using Send To Context Menu


1 Open File Explorer (Win+E).

2 Select one or more files(s) and/or folder(s) you want to ZIP.

3 Click/tap on the See more (3 dots) button on the command bar, and click/tap on Compress to ZIP file. (see screenshot below)

Compress_to_ZIP_file_File_Explorer_command_bar.png

4 Type a name you want for the ZIP file. (see screenshot below)

ZIP_name.png




Option Four

ZIP File(s) and Folder(s) using Command


To see more Compress-Archive command usage details, see: Compress-Archive | Microsoft Docs


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Use the command below you want:


 ZIP File

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -LiteralPath'<full path of file>' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of file> in the command above with the actual full path of the file with extension you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -LiteralPath 'C:\Users\Brink\Desktop\File.txt' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Folder with All its Files and Subdirectories

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -LiteralPath '<full path of folder>' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -LiteralPath 'C:\Users\Brink\Desktop\Folder' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Only All Files and Subdirectories in a Folder

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -Path '<full path of folder>\*' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -Path 'C:\Users\Brink\Desktop\Folder\*' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Only All Files in Root Directory of Folder

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -Path '<full path of folder>\*.*' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -Path 'C:\Users\Brink\Desktop\Folder\*.*' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




That's it,
Shawn Brink


 

Attachments

  • ZIP.png
    ZIP.png
    7.1 KB · Views: 12
Last edited:

Latest Tutorials

Top Bottom