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: How to search for Explorer files that are read-only

15 Feb 2013   #11
Ztruker

Windows 10 Pro X64
 
 

First question after trying this for a bit.

How do I find all files with the Read Only attribute set with or without any other attributes being set. From what I can see, you can't do it using just Windows Explorer and that is what Keith asked for:

Quote:
I am trying to search for all Explorer files that have the read-only attribute set.
Willing to be proven wrong (again I hope).


My System SpecsSystem Spec
.
15 Feb 2013   #12
Kari

Microsoft Community Contributor Award Recipient

 

Quote   Quote: Originally Posted by Ztruker View Post
First question after trying this for a bit.

How do I find all files with the Read Only attribute set with or without any other attributes being set. From what I can see, you can't do it using just Windows Explorer and that is what Keith asked for:

Quote:
I am trying to search for all Explorer files that have the read-only attribute set.
Willing to be proven wrong (again I hope).
OK, here we go:

Take the table from Gladson's earlier post:
Code:
READ ONLY = 1
HIDDEN = 2
SYSTEM = 4
DIRECTORY = 16
ARCHIVE = 32
ENCRYPTED = 64
NORMAL = 128
TEMPORARY = 256
SPARSE_FILE = 512
REPARSE_POINT = 1024
COMPRESSED = 2048
OFFLINE = 4096
Now combine, add. Searching files with Read Only attribute set, no other attributes:
Code:
attributes:1
(Read Only = 1)

Search files with both Read Only and Archive attributes set, no other attributes:
Code:
attributes:33
(Read Only 1 + Archive 32 = 33)

Search files with Hidden attribute set, no other attributes:
Code:
attributes:2
(Hidden = 2)

Search files with both Read Only, Hidden and Archive attributes set, no other attributes:
Code:
attributes:35
(Read Only 1 + Hidden 2 + Archive 32 = 35)

Search images with partial filename FIN with both Read Only and Archive attributes set , no other attributes:
Code:
kind:image name:FIN attributes:33
Kari
My System SpecsSystem Spec
16 Feb 2013   #13
KeithHoward

Windows 7 Professional x64
 
 

Hello again.

Kari, Thanks for your very detailed and clear explanation, which I read carefully. If I understand you correctly, to find all occurrences of read-only files, you would need to do a number of searches, to cover each combination of read-only and other attributes being set. My goal is to be able to execute one search and find all read-only files.

Of course, I would love to avoid buying more software, but my current understanding is that that single search is not possible in Explorer. File Locator Pro achieves my goal well, and I am happy with the product so far. (By the way, I have no affiliation whatsoever with that company.)

Finally, thanks again to everyone for an enlightening (albeit slightly sparky at times... discussion.

Bye for now.

Keith
My System SpecsSystem Spec
.

16 Feb 2013   #14
KeithHoward

Windows 7 Professional x64
 
 

By the way, I just realised that I fell behind on the threads, and I wrote my immediately previous response before reading Ztruker's and Kari's latest two responses. Sorry about that. However, my understanding remains that you cannot do a single search in Explorer to find all read-only files. Having said that, I would love to be proven wrong.

Cheers,

Keith
My System SpecsSystem Spec
16 Feb 2013   #15
Kari

Microsoft Community Contributor Award Recipient

 

A normal user usually uses only 4 attributes: Read Only, System, Hidden and Archive. You can search any combinations of these with attributes:X using logical operator OR.

An example:
Search for files with only Read Only attribute set, Read Only and Archive set, Read Only, Archive and Hidden set:
Code:
attributes:1 OR attributes:33 OR attributes:35
A logical operator (AND, OR, NOT) must always be in capital letters.

Kari
My System SpecsSystem Spec
16 Feb 2013   #16
KeithHoward

Windows 7 Professional x64
 
 

Ahhh, of course! That does indeed answer the question.

Many thanks Kari! Happy Saturday.
My System SpecsSystem Spec
16 Feb 2013   #17
Kari

Microsoft Community Contributor Award Recipient

 

You are welcome.
My System SpecsSystem Spec
16 Feb 2013   #18
Parman

Windows 7 Ultimate x64
 
 

A lot of great information in this thread. I learned a lot thanks everyone.
My System SpecsSystem Spec
16 Feb 2013   #19
Ztruker

Windows 10 Pro X64
 
 

That's great Kari, thanks again.

(tried it and it works perfectly, very cool)
My System SpecsSystem Spec
16 Feb 2013   #20
Kari

Microsoft Community Contributor Award Recipient

 

Thread marked solved, issue handled. Just to finish this topic from my side, a few examples of AND, OR & NOT to complete our advanced search mini-tut .

Find all images and videos with partial filename Hawaii taken (filmed) on July 2012 but not those taken between July 14th and 21st 2012:
Code:
name:Hawaii kind:image OR kind:video datetaken:July 2007 NOT 14/07/2007 .. 21/07/2007
This would list all image and video files where Hawaii is a part of the filename and which are taken (filmed) in July 2012, leaving out those taken (filmed) between July 14th and July 21st.
(Notice: date format and separators must match your current input language settings.)

Find all files with extension .doc which are created 2011 and modified 2013:
Code:
ext:doc created:2011 AND modified:2013
That's about it!

Kari
My System SpecsSystem Spec
Reply

 How to search for Explorer files that are read-only




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows Explorer Search Does NOT Find Files On My Hard Drive
Hello, I am using Windows 7 Home Premium, Service Pack 1. This is a problem that I am having with Windows Explorer (the file manager Explorer, NOT the Internet Explorer). When I open Windows Explorer and use the Search Files input box located in the upper right of the display, it does not...
General Discussion
Looking for patches to read ETA files - search returned no results
I was referred to this forum by a Wiki on ETA files. They stated that this forum would have links to patches that allowed my reading ETA files without downloading Google Earth. I would also like to know why (I have Google Desktop installed) my Windows log files show up as ETA files.
Software
Explorer Search Index Not Working/ Files are not coming up
Hi, I was wondering if someone could help me out with my predicament. Recently my search index hasn't been working. When I type in a common word or the name for a file it tells me "no items match your search" I know the files are there even when I go to the folder it's in, when I type in the name...
Performance & Maintenance
How to make File Explorer display full address of files in search
I have done a search and file explorer returns some results. You can see the locations of each file are chopped off. But there is no grid splitter allowing me to expand the filename column. How can I view the whole address of the files in Search results?
General Discussion
Window 7 explorer search .rar files
My windows search is not showing up .rar files as its results (I think I remember them showing up before), I checked the folder options and index options but both search for compressed files and indexing .rar is checked Is this a registry problem or something else? please help
General Discussion
Explorer search is sometimes not listing all files
If I search in "c:\users\" for *.xls I get 2 files listed - both are in deep subfolders. 142.xls in "c:\users\paul\appdata\roaming\temp\temp\temp\temp\temp\temp\temp\" If I search in "c:\users\paul\" for *.xls I get 100+ files listed, eg: list.xls in "c:\users\paul\backup\ICT\2010\" ...
General Discussion


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 01:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App