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 7 Pro. 64/SP-1
 
 

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
Ztruker

Windows 10 Pro X64
 
 

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

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.
Keith
Keith,
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
mireazma

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
Pyprohly

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,
Code:
dir /a:r * /b
Add the '/s' switch to recurse the search into subdirectories. For a PowerShell line that does similar,
Code:
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,
Code:
[enum]::GetValues([IO.FileAttributes])
For their values as well, enter the below line,
Code:
[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,
Code:
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
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 21:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App