Surprising DIR results when using wildcard
Posted: 18 Nov 2011 19:54
I executed DIR TEST*2.BAT and found the following file
testAnyRtnN.bat
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?
The file name exceeds the 8.3 standard - here is the short name:
TESTAN~2.BAT
Mystery solved.
Moral of the story - be careful when doing wildcard file searches. You may not get what you want
Dave Benham
testAnyRtnN.bat
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?
The file name exceeds the 8.3 standard - here is the short name:
TESTAN~2.BAT
Mystery solved.
Moral of the story - be careful when doing wildcard file searches. You may not get what you want
Dave Benham