file lists, excluding files, TC 8.x , win xp pro sp2

#1
Hi,

I am looking for a way to find files where the first char is NOT A-z or 0-9.

DIR /b /s /[! somename.ext]

so can you do something like

DIR /b /s /[! [! a-z0-9]*.ext]

thanks.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,588
46
Albuquerque, NM
prospero.unm.edu
#2
Hi,

I am looking for a way to find files where the first char is NOT A-z or 0-9.

DIR /b /s /[! somename.ext]

so can you do something like

DIR /b /s /[! [! a-z0-9]*.ext]
Perhaps something like:

dir /a /s /b [!a-z0-9]*

If you want to exclude anything with extension .EXT:

dir /[!*.ext] /a /s /b [!a-z0-9]*