In batch file scripts and the doc pages (e.g. here) I often see *.*
as (I guess) a way to specify multiple folder/ file names. My question is: How exactly this string *.*
is interpreted by cmd.exe
?
I know that specify folder/ file names two special characters can be used:
*
means any number of character (including zero)?
one character
So *.txt
would mean all files with extension .txt
in the current directory. In light of this, I would read *.*
as any folder/file name that has .
(dot) in it.
Why then when I run DIR *.*
in a folder that has only a subfolder named folder
and a file named script.txt
, it displays folder
and script.txt
instead of just showing script.txt
?