|
|
Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis. |
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).
|
|
Thread Tools |
Filetype filter for creating ZIP/RAR archives
I'm trying to make a ZIP archive of a folder with many subfolders in it and preserve the directory structure, but I only want to include one filetype (or exclude filetypes).
Does anyone know of a way to filter filetypes when creating archives? Jam it back in, in the dark. |
There might be a way of doing something like
copy c:\YourFolder\*.zip c:\OnlyZips\ from a DOS prompt to only copy zip files within a certain directory, and then you could zip up that second directory. There's nowhere I can't reach. |
Chocorific |
That probably depends on the ZIPping utility.
The standard 7zip commandline tool, has both filetype include and exclude switches, which do exactly what you want: From the man page: Code:
-i[r[-|0]]{@listfile|!wildcard} Include filenames -x[r[-|0]]]{@listfile|!wildcard} Exclude filenames @neothe0ne: If your ZIPping utility can't do it, then don't use it. It should already be deprecated. 7Zip can also create plain ZIP files, if you really need that. I'm not sure about the Windows GUI, but probably the functionality is already exported there - so you don't have to do it via commandline. This thing is sticky, and I don't like it. I don't appreciate it. |