Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Setting WinRAR to exclude specified files from being extracted

22 Apr 2011   #1
galacticninja

Windows 7 Ultimate, 64-bit
 
 
Setting WinRAR to exclude specified files from being extracted

I would like to ask how to set WinRAR to exclude files with the exact filenames: 'thumbs.db' or '.DS_Store' (without the quotes, ignore case) from being extracted from an archive.

Ex. Files with these filenames should not be extracted:

Quote:
Thumbs.db
thumbs.db
THUMBS.DB
.DS_Store
.ds_store
.DS_STORE
while files with these filenames should be extracted:

Quote:
1Thumbs.db
1thumbs.db
tackthumbs.db
Thumbs.db.txt
Abcd thumbs.db.txt
1.DS_Store
Abcd.ds_store
.DS_Store.txt
Abcd.DS_STORE.txt
In 'Settings->Security->Prohibited file types->File types to exclude from extracting', if I just type in 'thumbs.db .DS_Store' (without the quotes) in the field, will it work the way I described?

Also, does anyone know if WinRAR has a syntax guide for the Prohibited file types list in case I'd like to add more filenames or be flexible with the rules I need?

The reason for this question, is I'd like to not extract unnecessary files from ZIP, RAR or 7z archives in Windows 7 - files like Windows 2000/XP's Thumbs.db file (Thumbnail cache) and Mac OS X' .DS_Store file (Desktop Services Store), while not being too strict and also not extracting files which just contain 'Thumbs.db' or '.DS_Store' in its filename.


My System SpecsSystem Spec
.

22 Apr 2011   #2
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

Yes, it should work.

Here is a piece from WinRar 4.0 Help file
Quote:
Files to exclude
File masks and file names to exclude from the archiving operation. Wildcards are supported both in path and name parts of masks. If you need to specify several masks, separate them by spaces. If mask contains spaces, enclose it in quotes. For example, you may enter:

c:\temp\info.txt *.bak *.tmp *\temp\

to skip c:\temp\info.txt file, all .bak and .tmp files, all temp folders and all files in temp folders. You may enter file names manually or use "Append" button to browse for file to exclude.

Detailed information about exclusion masks syntax is provided in description of switch -x. This switch uses the same format of exclusion masks as "Files to exclude" field.
My System SpecsSystem Spec
23 May 2011   #3
galacticninja

Windows 7 Ultimate, 64-bit
 
 

Quote   Quote: Originally Posted by Neutron16 View Post
Yes, it should work.

Here is a piece from WinRar 4.0 Help file
Thanks for that!

I have an issue with this not working on certain types of ZIP/RAR/7z files, though.

I've entered `thumbs.db .DS_Store` in the prohibited file list. I have encountered a ZIP file that has a `.DS_Store` file in a 2nd level directory. (Zipfile.zip > Parent Directory > Directory where .DS_Store is stored). When I extract this ZIP file, WinRAR still extracts the `.DS_Store` file. Changing `.DS_Store` to `*.DS_Store` fixes this. The same issue happens with thumbs.db files.

So now, my prohibited files list is now `*thumbs.db *.DS_Store` (without the quotes). Know why the previous entry didn't work in this case? Also, is there a better entry in the Prohibited files list that will work to exclude only thumbs.db and .DS_Store for all directory levels in a ZIP/RAR/7z file?
My System SpecsSystem Spec
.


Reply

 Setting WinRAR to exclude specified files from being extracted




Thread Tools





Similar help and support threads
Thread Forum
My documents' folders have disappeared and extracted all files.
My girlfriend was on the computer for a bit (she isn't very tech savvy by the way) and when I came back on to open My Documents, all my folders were gone replaced by the files that were located in each and every one of these same folders. Is there a way to revert this or do i have to go through the...
General Discussion
Delay Showing Extracted Files
Hey Guys I have a little problem. FILES from capturing screens and videos, extracting compress file etc. are NOT showing immediately, I need to refresh the directory folder just to see it. For example: I will extract the "a.rar" it contains "a" After extracting, no files were added to...
General Discussion
show hidden files folders (exclude files)
Is there any way in windows 7 the show hidden files and folder and show system files, however hide only desktop.ini's and thumbs.db? Don't need to seem them. Annoying.
General Discussion
Zip - Extracted Files Window - Enable or Disable
How to Enable or Disable "Show Extracted Files when Complete" from ZIP in Windows By default, when using the built-in ZIP feature in Windows and you either right click on a Zip file and click on Extract All or open the zip file and click on the Extract all files command bar button to extract the...
Tutorials
Extracted files on desktop
When I extract a file or video to desktop I can't find it. I retsart the pc and the file or video pop up,it does this almost every time.Any help?
General Discussion
Need Help with Extracted Game Files
Need Help with Extracted Game Files so i downloaded need for speed pro street... and extracted all the files in the same folder i downloaded them into.... where do these files go because i can't play, it won't let me....... please help...... here is the screen shot of all the files...
Gaming

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App