I'm trying to find all .txt files on my C: Drive that have exactly 7 characters, then display them in a wide format.
The code I'm using at the moment is
Code: Select all
DIR C:\ /W /S | findstr /R "^.......\.txt"
But it's returning other files e.g.
Code: Select all
eulaENU.txt InstallManager.cfg Language.Dat
License.txt License_Italian.txt
schemes.txt simplified.clr
Medical.txt Philosophy.txt
LICENSE.txt PATCH.ERR
AUTHORS.txt COPYING_GPL.txt
License.txt locdata.ini
license.txt PreEmptive.Attributes.dll
version.txt
nss_log.txt omniture_log.txt Output_NSP_Detector.log
maplist.txt [maps] matchmodes.txt
actbusy.txt
credits.txt
points3.txt points4.txt polys.txt
Any help would be much appreciated.