The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. General Windows Desktop Development Issues.
Sign in to vote. How do I zip a file from the command line. That is, not using Explorer, WinZip or 7-zip. Friday, April 8, PM. NameSpace zipFileName. Sleep ' Delete original file fso. DeleteFile sourceFileName, true. Thursday, May 19, PM. Maybe you want to combine multiple files into a single archive? Or maybe you want to reduce the size of your files by compressing them in a ZIP archive? Regardless of the reason, there are built-in and third-party options to create a ZIP file on Windows.
Here are six ways you can create a ZIP file on Windows This menu has an option that lets you add your selected files into a ZIP archive you can add and remove items from the Windows context menu. This feature works out of the box and is available in many Windows versions. You can use this option to add a single file, multiple files, and even folders to a new ZIP archive.
This works pretty much the same way as the context menu option, and you can use this to add both files as well as folders to a new ZIP archive. However, keep in mind this command only works in Windows 10 or later. Windows 10 comes with a command called tar that helps to create or extract archives on your PC.
You can use this command to add your existing files to a ZIP archive, and here we show how you do that:. Windows lets you make ZIP archives without any apps, but the features are pretty limited. If you want more options, like the ability to choose a compression level and split your archive into multiple parts, you need to go for a third-party archive app.
This tool offers options like splitting your archives, adding password protection to them , and so on.