I'm looking for a way to differentiate between letters and numbers when reading user account names in Windows 7 using batch scripting. For example, I want to distinguish between User and User1234. The purpose is because I'm using an account deletion script to remove old accounts, but I only want to remove those accounts with numbers in them.
I've been researching this for a while, but the closest thing I've been able to find is here: http://www.dostips.com/?t=Experimental.StringDiff
Another option, maybe, is to be able to read the last 4 of the user name, and if they equal 1-9 then to add them to the deletion group. I'm not sure how to do this, however, so - again - any help is appreciated.
Thanks