Find folders matching a pattern

I had not, sorry about that and thanks for the reminder.

I think the error message is misleading us. The only thing I see wrong is that you cannot concatenate a string with a plural - "some string" & pathnames does not work.

Try

concatenation "%0d%0a" of ("rd /s /q %22" & pathname of it & "%22") of find folders "*" whose ((last 2 of pathname of it as integer) <28) of folder "c:\temp"
1 Like

Much appreciated @JasonWalker! And no worries, been so busy I havenā€™t even been able to test thatā€¦