I need to look at a folder and check for the existence of files with names that have exactly 12.1 or 12.2 characters. For OS X and Linux, I use a shell and find to match “???.??” and then “???.?” and it works fine.
Trying to get a similar result on Windows, I call dir /b/d “???.??”. If I run this in a terminal, it does what’s expected. However, running it in a shell never completes and the app appears to hang.
I Don’t believe that it’s a Shell issue as I execute 8 other Shell calls successfully prior to this command.
Realizing that it probably makes better sense to use folderitems for this, I’m trying to come up with a test on the fi.Item(X) to see if it matches the wildcard patterns above. I expect that using the fi.Item(x).Name and performing a match check will be pretty efficient, but I can’t come up with a comparison test that succeeds.
Does anyone have a recipe for this type of comparison they could share? Or a big bag of Duh to share with me ?