Zips just the content, not the folder itself Just select your folders, select this script to run, and the Zip files will appear alongside the folders, named after each folder. It will Zip each into a separate folder rather than all into one. This script will also run against multiple folders. This removes that annoying root level folder that you otherwise have to navigate through when opening the Zip file. This script instead ignore the folder, takes the content of the folder and puts that in the Zip file. When you right click and select the option to Zip a folder, it takes the folder and puts it into the Zip file. Correct, but 7-Zip has a really strong command line when it comes to options, and this particular folder zipping doesn’t Zip the folder, but rather the folder’s contents. Now you might cry out that you can already Zip a folder, and you don’t need 7-Zip to do that. For that reason, I got into the habit of using functions for common paths. That is because I have a habit of sometimes dynamically changing paths based on some other criteria to utilise different versions - e.g. You may ask why I use a function rather than a variable. A command line utility that’s part of the 7-Zip installation. This function just returns the path to the 7z.exe file. It’s a function that is used by both of the other scripts. Well that’s because this first script is barely a script. … but I only mentioned two scripts earlier. I use script library files broken out into particular function areas, and then I access them from menus on toolbar buttons, so the following three scripts I keep in the same file. Hopefully you know how to add scripts to your XYplorer instance, but if not, the first thing you should do is take the scripting tour, and it will have you up and running in no time. As well as being incredibly flexible and configurable, it comes with its own scripting language, which allows you to take it even further though the good news is that the scripts in this post are actually quite straight forward and you can always just copy and paste them.ħ-Zip is a compression utility that is open source and provides excellent performance and compression/decompression features, including, but not limited to, its own very nice ‘7z’ file format. XYplorer & 7-Zipįor those of you not familiar with them, XYplorer is an alternative to Windows Explorer and is a file management application extraordinaire. So, when I added a new script this week that uses 7-Zip I thought I’d draft a quick post about it along with a related script also using 7-Zip. XYplorer is one of my favourite Windows apps and it has been a little while since I’ve shared anything about how I’m using it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |