• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Solved How to search by Attribute in Explorer?


DanSitar

Member
Member
Quebec

Posts
14
#1
Greetings forums' readers & helpers, ٩̢ ̗(Ӧ̮Ӧ)̢ ̗۶

The search feature in the Explorer of Windows 8 is not as strait forward, simple and reliable as the previous versions (even if the search in the sub-folders is selected, it doesn't always find something that are in them.)

So, I need a way to list in the Explorer all the files whose Attributes are set toA’.

This is to find in one command which files (and in which sub-directory) I did not backup yet, instead of looking for them in every folder after changing the view to ‘Details’. You see, my backup process is in three steps:

① Once the chosen folder in the Explorer is in the ‘Details’ view, I click on the ‘Attribute’ tab, which brings all the ‘A’ on top.

② I select and drag them to an external drive.

③ Then, I change the attribute property of those selected files, i.e., from ‘A’ to ‘N’.

 ٩̢ ̗(̾̈́͡◑̾̈́̈́͜ ̾̈́̈́͡◑̾̈́)̢ ̗۶It would be much quicker to select-drag them directly from the results and then, to change their attributes without having to go to their respective folders.

Regards and thanks, ¿̒ ̡͡ ʅ


P.S.: I made a Tutorial in the Windows 7 Forums :


I literally coach you to build your own menu. The editing in the registry was approved by Brink
 

My Computer

System One

  • OS
    Windows 8 Pro with Media Center
    System Manufacturer/Model Number
    Aspire 5552-5686 notebook
    CPU
    ADM Phenom II X3 N830
    Motherboard
    Acer JE51_DN Base Board Version
    Memory
    16 GB DDR3
    Graphics Card(s)
    ADI Mobility Radeon HD 45250

MilesAhead

Eclectician
VIP Member
Pro User
Posts
2,130
#2
Either command line or a file manager that can collect files by the archive attribute would be easier as that's what it was there for. There are many free file managers. Or you could do RoboCopy or RichCopy to recursively gather all files with archive bit set throughout a folder tree.
 

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model Number
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad

DanSitar

Member
Member
Quebec

Posts
14
#3
Thanks for your suggestion, ٩̢ ̗(Ӧ̮Ӧ)̢ ̗۶

I made a search on RoboCopy and RichCopy and came across this valuable article that compares many utilities:


 ٩̢ ̗(̾̈́͡◑̾̈́̈́͜ ̾̈́̈́͡◑̾̈́)̢ ̗۶̑
i recommend everyone to read it before using any Copy utility, even if it is not in the list, because you will find what to look for to evaluate the pros and cons of yours.

Regards and thanks, ¿̒ ̡͡ ʅ
 

My Computer

System One

  • OS
    Windows 8 Pro with Media Center
    System Manufacturer/Model Number
    Aspire 5552-5686 notebook
    CPU
    ADM Phenom II X3 N830
    Motherboard
    Acer JE51_DN Base Board Version
    Memory
    16 GB DDR3
    Graphics Card(s)
    ADI Mobility Radeon HD 45250

MilesAhead

Eclectician
VIP Member
Pro User
Posts
2,130
#4
You are welcome. Looks like an interesting article. :)
 

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model Number
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad

DanSitar

Member
Member
Quebec

Posts
14
#5
 ̢ ̗(̾̈́͡◔̾̈́̈́͜ ̾̈́̈́͡◔̾̈́)̢ ̗Based on that article, I have chosen to try the “emcopy.exe” from EMC² , but I could not find the last version anywhere, even at the site of the company who created it. Therefore, I made my own DOS program.
́
I made it launched by a ‘right-click’ on any folder, then, on the link I added on the context-menu of the Explorer. It lists only the files having the ‘A’ attribute in that folder and its sub-folders. The results are recorded in a text file, then, it opens it in my TextPad text editor in which I made some macros to reorganize the results as I please.

Here is the process, i.e., the DOS program and the instructions in the registry for the context-menu:

_Archives.bat
Code:
[B][COLOR=#0000cd]@ECHO OFF[/COLOR][/B]
[COLOR=#0000cd][B]DIR[/B][/COLOR] [COLOR=#000080][B]%1[/B][/COLOR] [B][COLOR=#000080]/A:a /B /O:gne /S >[/COLOR][/B] [COLOR=#000080][B]%1[/B][/COLOR]\__Archives.txt
[B][COLOR=#0000cd]CALL[/COLOR][/B] "C:\Program Files (x86)\TextPad 6\TextPad.exe" [COLOR=#000080][B]%1[/B][/COLOR]\__Archives.txt
[B][COLOR=#0000cd]EXIT[/COLOR][/B]
In the registry:

What I wanted to see in the context-menu is an Icon and the text ̒ ̒ Liste_pour_Archiver>__Archives.txt ̓ ̓ which means "List to Archive". So, I made two new keys: “Liste_pour_Archiver” and its sub-key “command

Code:
[[COLOR=#8b4513][B]HKEY_CLASSES_ROOT\Folder\shell\Liste_pour_Archiver[/B][/COLOR]]
[B][COLOR=#0000ff]@[/COLOR][/B]=[COLOR=#8b4513]Liste_pour_Archiver>__Archives.txt
[/COLOR][COLOR=#0000ff][B]Icon[/B][/COLOR]=[COLOR=#800000] [/COLOR][COLOR=#8b4513]REG_EXPAND_SZ[/COLOR][COLOR=#800000] [/COLOR][COLOR=#8b4513]%SystemRoot%\System32\ieframe.dll,96[/COLOR]

[[COLOR=#8b4513][B]HKEY_CLASSES_ROOT\Folder\shell\Liste_pour_Archiver\command[/B][/COLOR]]
[COLOR=#0000ff][B]@[/B][/COLOR]=[COLOR=#8b4513]D:\_Archives.bat "%1"[/COLOR]
Note: “@” is the (default) in a .reg file.

Then, I verified if it was automaticaly copied in:
Code:
[[COLOR=#8b4513][B]HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\[/B][/COLOR]]
I used the application “IconView.exe” (which does not need to be installed) to find the proper Icon.

Now, I just have to browse in the Explorer and drag those files to their respective USB keys/folders, even directly in their ZIP files. I was surprised how many folders I forgot to check out the attributes ‼

Regards, ¿̒ ̡͡ ʅ
 
Last edited:

My Computer

System One

  • OS
    Windows 8 Pro with Media Center
    System Manufacturer/Model Number
    Aspire 5552-5686 notebook
    CPU
    ADM Phenom II X3 N830
    Motherboard
    Acer JE51_DN Base Board Version
    Memory
    16 GB DDR3
    Graphics Card(s)
    ADI Mobility Radeon HD 45250