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

  • Thread starter CSGalloway@nc.rr.com
  • Start date
C

CSGalloway@nc.rr.com

Guest
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,968
53
Albuquerque, NM
prospero.unm.edu
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]*