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

16 Feb 2013   #21
Layback Bear

Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64

Now all I have to do is get a external USB human brain to remember all this.
My System SpecsSystem Spec
16 Feb 2013   #22

Windows 10 Pro X64

Nah, that's what databases are for.
My System SpecsSystem Spec
17 Feb 2013   #23

W7, W8.1

Quote   Quote: Originally Posted by KeithHoward View Post
Finally, thanks again to everyone for an enlightening (albeit slightly sparky at times...:) discussion.
lol as predicted & those sparks are nothing (spent many years on Usenet in the 80's ;O)
Good luck with whatever program one chooses to use. The free Commander would have very easily found the files in this case, but of course Filelocator Pro is far more advanced, the devs there have done a great job (and take a look at their client list).

Am hoping you will enjoy your choice (Agent Ransack here for home, and Filelocator Pro for work, 100% reliable, 0% problems). As it's got many supporters\users among forum members, it was reading some of the recommendations here that 1st made me aware of it's existence some years ago, so many thanks to the forum for providing valuable info.
My System SpecsSystem Spec

06 Nov 2015   #24

win 7

One could easily make money just GUI-ing those pesky "user-friendly" parameters into a little tool. I'd pay for such a tool instead of using this... Pascaline-style method or even instead of any bloaty Commander.
But then again, this would be an appropriate occasion for Mark Russinovich (to whom I'm a fan) to step in and make a tool like only he knows to make.
Oh, I almost forgot: with 4 attributes you'd have to use 8 combinations
My System SpecsSystem Spec
07 Nov 2015   #25

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan

Although not GUIs, Windows does come with tools fit for the task of listing files with certain file attributes. Those tools are the Command Prompt, and PowerShell.

As Ztruker describes in post 2, the below Command Prompt command will list all files and folders with the Read-only attribute set,
dir /a:r * /b
Add the '/s' switch to recurse the search into subdirectories. For a PowerShell line that does similar,
Get-ChildItem | ?{$_.Attributes -bAnd 1} | select -Expand FullName
Add the '-Recurse' switch to find Read-only items in subdirectories.

Quote   Quote: Originally Posted by Kari View Post
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.
Quote   Quote: Originally Posted by mireazma View Post
With 4 attributes you'd have to use 8 combinations
Yep, that means you'd have to type "attributes:X" 8 times into the Explorer search to find Read-only items—and that's if there were 4 attributes—imagine how many times you'd have to type "attributes:X" to consider all 14 of Windows 7's file attributes... there'd be (1/2)*2^14 = 8192 combinations!

And I believe Windows 8 adds 2 new file attributes for a total of 16 unique attributes (in which there are a whopping 32768 combinations that contain Read-only). To list all file attributes on your computer, run the below PowerShell line,
For their values as well, enter the below line,
[enum]::GetValues([IO.FileAttributes]) | select @{l='Name';e={$_}}, Value__ | ft @{l='Attribute';e={$_.Name};a='l'}, @{l='Value';e={$_.Value__};a='r'} -a
The output of the above on my Windows 8.1 Pro PC reads,
Attribute          Value
---------          -----
ReadOnly               1
Hidden                 2
System                 4
Directory             16
Archive               32
Device                64
Normal               128
Temporary            256
SparseFile           512
ReparsePoint        1024
Compressed          2048
Offline             4096
NotContentIndexed   8192
Encrypted          16384
IntegrityStream    32768
NoScrubData       131072
My System SpecsSystem Spec

Thread Tools

Similar help and support threads
Thread Forum
Win 7 can no longer back up to NAS, but Explorer can read/write files
I have a NAS which for some reason periodically goes off line in Win 7. I have it mapped as drive Z:, but periodically it won't connect on boot. Resetting the NAS usually solves this, but the last time I did it, Windows couldn't even see it on the network for three days. It finally showed up,...
Network & Sharing
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.
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:56.
Twitter Facebook