Solved How to search for Explorer files that are read-only

Now all I have to do is get a external USB human brain to remember all this.
 

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Nah, that's what databases are for.
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer My Computer

At a glance

W7, W8.1
Computer type
Laptop
Computer Manufacturer/Model Number
Dell \ Lenovo\ HP \ Toshiba
OS
W7, W8.1
Antivirus
MSE, Malwarebytes
Browser
FF
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 Computer My Computer

At a glance

win 7
OS
win 7
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:
[B]dir /a:r *[/B] [COLOR=silver]/b[/COLOR]
Add the '/s' switch to recurse the search into subdirectories. For a PowerShell line that does similar,
Code:
[B]Get-ChildItem | ?{$_.Attributes -bAnd 1}[/B] [COLOR=silver]| select -Expand FullName[/COLOR]
Add the '-Recurse' switch to find Read-only items in subdirectories.


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.
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 Computer My Computer

At a glance

Windows 10, Windows 8.1 Pro, Windows 7 Profes...
Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top