![]() |
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? |
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. |
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} @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. |
All times are GMT -5. The time now is 10:42 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.