Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by Jerry »

I have a folder called DRIVES under which I have different subfolders that I use to mount external drives. At any time, only a few subfolders actually have external drives mounted under them. Is there a color filter expression that can indicate which of these subfolders actually have mounted drives? Or, is there any other way in XYplorer to see this?
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by highend »

There is even a default color filter for that...

attr:junction
One of my scripts helped you out? Please donate via Paypal

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by Jerry »

highend wrote: 07 Jul 2021 14:24 There is even a default color filter for that...
attr:junction
Ah, I forgot to mention that I am using that filter already but it does not distinguish between mount points with currently mounted drives and those with placeholders. For example, in folders that have been mount points previously, but not currently, XYplorer reports:

The system cannot find the path specified.
Volume(6f9b....)


I want a color filter that will not mark those folders, only the ones under which drives are currently mounted and accessible.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

admin
Site Admin
Posts: 60558
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by admin »

What do you get here in either case?

Code: Select all

exist "<path to folder...>";

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by highend »

attr:junction AND prop:#HardLinks:1
or eventually
attr:junction AND prop:#HardLinks:>=1

Because for a non available mount, #HardLinks is "The system cannot find the path specified."
One of my scripts helped you out? Please donate via Paypal

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by Jerry »

admin wrote: 07 Jul 2021 14:47 What do you get here in either case?

Code: Select all

exist "<path to folder...>";
So, there are 2 subfolders, MUSIC 7,8-BK and MUSIC 3,4-BK. Only the first subfolder has an external drive currently mounted under it. For that, exist reports:
  • Path: U:\DRIVES\MUSIC 7,8-BK
    Real Path: U:\DRIVES\MUSIC 7,8-BK
    ExistFile: False
    ExistPath: True
    ExistFolder: True
    ExistItemFF: True
    ExistPathFF: True
    ExistPathOrFile: True
    ExistPathOrFileShell: True
    ExistIcon: True
    IsNetworkLocation: False
    GetDriveType: 3 (DRIVE_FIXED)
    GetItemType: 2
    GetFileAttributes: 0x411 (1041)
    Owner: EARTH\Jerry
    This path available in Tree: True
    Current node available in Tree: True
    Watchable: True
    FilenamesCaseSensitive: False

    Junction Target 0: Volume{e34f74e0-a50a-4545-a1c7-33fe8ff42e8c}\
    Junction Target 1: U:\DRIVES\MUSIC 7,8-BK
    Junction Target 2: U:\DRIVES\MUSIC 7,8-BK
    IsMountPointVolume: True
    MountPoint: U:\DRIVES\MUSIC 7,8-BK
For the subfolder without a currently mounted drive, exist reports:
  • Path: U:\DRIVES\MUSIC 3,4-BK
    Real Path: U:\DRIVES\MUSIC 3,4-BK
    ExistFile: False
    ExistPath: True
    ExistFolder: True
    ExistItemFF: True
    ExistPathFF: False
    ExistPathOrFile: True
    ExistPathOrFileShell: True
    ExistIcon: True
    IsNetworkLocation: False
    GetDriveType: 3 (DRIVE_FIXED)
    GetItemType: 2
    GetFileAttributes: 0x411 (1041)
    Owner: EARTH\Jerry
    This path available in Tree: True
    Current node available in Tree: True
    Watchable: True
    FilenamesCaseSensitive: False

    Junction Target 0: Volume{fac33afa-2e31-4a33-8638-120593920e9f}\
    Junction Target 1: U:\DRIVES\MUSIC 3,4-BK
    Junction Target 2: U:\DRIVES\MUSIC 3,4-BK
    IsMountPointVolume: True
    MountPoint: U:\DRIVES\MUSIC 3,4-BK
Last edited by Jerry on 07 Jul 2021 15:10, edited 1 time in total.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by Jerry »

highend wrote: 07 Jul 2021 14:56 attr:junction AND prop:#HardLinks:>=1
This works! Thanks!
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

admin
Site Admin
Posts: 60558
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Color Filters: Showing Mount Folders That Actually Have Mounted Drives

Post by admin »

ExistPathFF seems to be the only difference!

I'm glad that highend's idea works. :)

Post Reply