Is there a way to return a true or false value for a registry search where the complete registry path is not known?
Example: Search to see if a certain user profile path exists in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
As usual, my syntax isn’t working…
There’s no type of descending search, but I think this can get your specific query -
q: pathnames of keys whose (value "ProfileImagePath" of it as string = "C:\Users\fuzzy") of keys "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList" of native registry
q: exists keys whose (value "ProfileImagePath" of it as string = "C:\Users\fuzzy") of keys "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList" of native registry
Nice! I’ll give this a try. Thanks!