Files in folder:
a.j
ab.jp
abc.jpg
abcd.jpeg
dir
command results:
Command Result (Files shown)
---------- --------------------
dir ?.* a.j
dir ??.* a.j, ab.jp
dir ???.* a.j, ab.jp, abc.jpg
dir ????.* a.j, ab.jp, abc.jpg, abcd.jpeg
So we can see single ?
it means "0 or 1 letter".
Now more dir
command results:
Command Result (Files shown)
---------- --------------------
dir *.? a.j
dir *.?? a.j, ab.jp
dir *.??? a.j, ab.jp, abc.jpg, abcd.jpeg --> What is this?!
dir *.???? a.j, ab.jp, abc.jpg, abcd.jpeg
In 3rd command why ???
is showing jpeg
? Can you explain? Is this bug in cmd?