If issue still persists post back with current status of your computer and result of proposed suggestion, we will be happy to assist you. Was this reply helpful? Yes No. Sorry this didn't help. Thanks for your feedback. Please write back to us for further assistance, we'll be glad to assist you. Is there a way to zip a file or folder from the command line? Even when you don't need to compress files, ZIP archives are still handy.
We'll show you how to make them on macOS. Mahesh is a tech writer at MakeUseOf. He's been writing tech how-to guides for about 8 years now and has covered many topics. He loves to teach people how they can get the most out of their devices.
Share Share Tweet Email. Mahesh Makvana Articles Published. Use Google Fonts in Word. Use FaceTime on Android Signal vs. Customize the Taskbar in Windows What Is svchost. Best Smartwatches. Best Gaming Laptops. Best Smart Displays. Best Home Security Systems. Best External Solid State Drives. Best Portable Chargers.
Best Phone Chargers. Best Wi-Fi Range Extenders. Best Oculus Quest 2 Accessories. Best iPad Air Cases. Awesome PC Accessories. Best Linux Laptops. The script was originally made for Windows XP, but it also works in Windows 7 x64 Ultimate - no guarantee's if Windows will keep around the various Shell objects this uses. Bat file receive path to dir to be zipped and zip file name as parameters.
I tested it with a directory containing multiple nested files and folders and it worked perfectly. Just follow the format of the command line. There is also a way to unzip the files via command line which I found as well. One way, just brings open an explorer window showing what the content of the zipped file is. Some of these also use Java which isn't necessarily native to windows but is so common that it nearly seems so.
Does Windows 7 have unzip at the command line installed by default? I will post something related to WSkids answer as sadly i cannot use the comment function. One of these issues is that the method returns immediately while the copy process starts in background whereas multiple CopyHere calls will interfere each other and the ZIP won't be created correctly.
A wait loop is needed here to fix that. My wait loop is based on an answer to a similar issue posted here. Here is an updated version which fixes the "Object required" error reported by pihentagy. It's a timing issue as the newly created ZIP file is included in the Items collection when the script is executed on fast machines. Others have already discussed various methods for using the built in windows functions, my solution requires installing the additional software.
Here is another idea, from 4 different sources; not my ideas, but I compiled them to make it work for me. Binary compressed files won't make much difference. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 11 years, 2 months ago. Active 5 months ago. Viewed k times.
I was thinking something like 'send to compressed folder' but I don't know how to do it Improve this question.
0コメント