Page 1 of 1

Surprising DIR results when using wildcard

Posted: 18 Nov 2011 19:54
by dbenham
I executed DIR TEST*2.BAT and found the following file
testAnyRtnN.bat :shock:

At first I couldn't figure out how a search pattern containing a 2 could return a file name that clearly does not contain a 2 . . .
. . . or does it? :twisted:

The file name exceeds the 8.3 standard - here is the short name:
TESTAN~2.BAT

Mystery solved. :D

Moral of the story - be careful when doing wildcard file searches. You may not get what you want :!:


Dave Benham

Re: Surprising DIR results when using wildcard

Posted: 19 Nov 2011 06:32
by renzlo
thanks dave for the information.