Hello Dave
It’s good to see alternatives in Threads, JMHO
I don’t have enough real life programming experience myself to comment on the merits of either way. The Dir way seems to crop up a lot in forum answers, that’s where I picked it up from. It does the simple job for a folder, but I think the file system object is probably better for more complicated things like sub Folders and things recursion.
(Before I went off into a technology coma for almost 30 years, I think I used the Dir to find my way around as I recall, in the early days of computers.)

(One small thing: I read the request as doing for "cp4" or "gt4" and then for the Not "ghl". But I am not sure, and it doesn’t really matter, I think there is enough here for the OP to adapt for exactly what he wants.) My guess was that perhaps a key thing the OP was missing was something like the Visual Basic Like operator, which we both used.
( https://learn.microsoft.com/en-us/do.../like-operator )
A useful thing, maybe like a poor man’s equivalent of more complicated WildCard Reginald Expressions & co.

Alan