Are files too large to transfer? Not enough disk space? Regardless of the reasons, creating zip files is common in computer use. This MiniTool post will show you how to create zip files using Command Prompt and give several ways to unzip files. Let’s keep reading.
Command Prompt is officially called the Windows Command Processor, short for CMD. It is the command line interface for Windows operating systems. You can perform various command lines via this tool to fix problems or complete operations.How to open Command Prompt
  • Press Win + S, type Command Prompt into the search bar, and hit Enter to open it.
  • Press Win + R, type cmd into the text box, and hit Enter to open it.
Turn to this post to find more methods about how to open Command Prompt.
Full Guide to Move Folders and Subfolders Using CMD
Full Guide to Move Folders and Subfolders Using CMD

Do you know how to move folders and subfolders using CMD? This post explains three command lines in detail to do it.

Read More

How to Create Files Using Command Prompt

Command lines are widely used to resolve many computer errors. You can also zip files with Command Prompt by using the tar command line. Please follow the next steps to learn how to do it.Step 1: Press Win + R to open the Run window.Step 2: Type cmd into the text box and press Shift + Ctrl + Enter simultaneously to run Command Prompt as administrator.Step 3: Type the command line: cd Location and hit Enter.Please replace Location with the specific location of the folder you want to zip up.choose the folder to zipStep 4: Type dir and hit Enter. Then the files included in the selected folder will display in the interface.display the filesStep 5: Type the command line: tar -a -c -f Compressed.zip *.FileExt and hit Enter.If you want to compress all the files in the folder, please replace Compressed with the name of the zip folder and change FileExt to the extension(s) of the file you’re going to compress.
Tips:
If there are different types of files, you can add more *.FileExt at the end of the command line. For example, tar -a -c -f Pictures.zip *.png *.docm.
compress all the filesIf you just want to zip a single file, please replace * with the name of the file you want to zip and change Compressed and FileExt to the same as in the first situation.zip a single fileYou can find the created zip folders in the original folder.

How to Zip Files Using Other Methods

In addition to creating a zip file using Command Prompt, there are many other methods to help you zip files.Method 1: Zip files by Send toStep 1: Right-click on the folder you want to compress.Step 2: Choose Send to > Compressed (zipped) folder.compress a folder use Send toThe new zip folder will be created under the same name and the same location.Method 2: Compress files with File ExplorerStep 1: Locate the folder you want to zip in File Explorer.Step 2: Shift to the Share tab on the toolbar.Step 3: Choose Zip to compress the folder.compress files with File ExplorerYou can change the name of the created zip folder directly.
How to Compress a Folder in Windows 10 or Mac to Reduce Size
How to Compress a Folder in Windows 10 or Mac to Reduce Size

How to compress a folder in Windows 10 to reduce the size of the folder? Check the 6 ways in this article to compress folders and files on Windows 10.

Read More

How to Unzip Files

If you want to extract files from a zip folder, you can also use Command Prompt to make it.Step 1: Press Win + S and type Command Prompt into the search bar.Step 2: Choose Run as administrator from the right panel.Step 3: Type cd Location and hit Enter.Please replace Location with the specific path of the file.Step 4: Type tar -xf Name.zip and hit Enter. Change Name to the name of the zip folder.unzip a folderThen, you can find the uncompressed files in the same folder.
How to Zip or Unzip Files on Windows 11 Using Native Compression?
How to Zip or Unzip Files on Windows 11 Using Native Compression?

This post shows you the easy methods to zip or unzip files on your Windows 11 computer using native compression support.

Read More

Bottom Line

You will face various situations that need to zip files. You can try to create zip files using Command Prompt if you don’t want to install third-party tools.If you delete files accidentally in the process of zipping files, you can try MiniTool Power Data Recovery to restore them.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

This free data recovery tool allows you to rescue various types of files like photos, videos, archives, documents, etc. You can also recover files from external hard drives, SD cards, memory cards, and so on. You can use the free edition to recover up to 1GB of files. If needed, you can get the full edition to obtain unlimited data recovery capacity.
  • linkedin
  • reddit