START *command

May 20, 2008
9,351
62
Syracuse, NY, USA
With this alias
Code:
v:\> alias dir
*dir /a /p /m /k /h /ne
I can "START DIR" and I get a new console in which the alias is executed.

"*dir" works in the current instance to give the built-in DIR command.

But if I try to START "*DIR", I get an error I don't understand.
Code:
v:\> start *dir
TCC: (Sys) The system cannot find the file specified.
 "C:\WINDOWS\SYSTEM32\*DIR.EXE"
What's going on there?
 
May 20, 2008
9,351
62
Syracuse, NY, USA
START thinks you're looking for an executable name ending in "DIR".
It seems odd that START would use wildcards. START's help doesn't mention it. And it doesn't work even if a matching file exists.
Code:
v:\> start *pconfig
TCC: (Sys) The system cannot find the file specified.
 "C:\WINDOWS\SYSTEM32\*PCONFIG.EXE"