Gamingforce Interactive Forums
85239 35211

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

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).


Filetype filter for creating ZIP/RAR archives
Reply
 
Thread Tools
neothe0ne
River Chocobo


Member 461

Level 25.17

Mar 2006


Reply With Quote
Old Mar 29, 2009, 10:19 PM #1 of 3
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.
RacinReaver
Never Forget


Member 7

Level 44.22

Feb 2006


Reply With Quote
Old Mar 30, 2009, 02:07 AM Local time: Mar 30, 2009, 12:07 AM #2 of 3
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.
LiquidAcid
Chocorific


Member 6745

Level 38.97

May 2006


Reply With Quote
Old Mar 30, 2009, 02:01 PM Local time: Mar 30, 2009, 08:01 PM #3 of 3
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
@RacinReaver: That obviously won't work, since it (the copy command) doesn't see subdirectories in YourFolder. Also it duplicates files first, which you have to delete afterwards. Which is turn leads to more fragmentation. Don't do it that way.

@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.
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > Filetype filter for creating ZIP/RAR archives

Forum Jump


All times are GMT -5. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.