I have a windows application launched from a taskbar shortcut that has an environment in which %COMSPEC%
is not set.
This later creates a problem for this application when it tries to create a window with a shell in it, and cannot find cmd.exe
.
Does Microsoft recommend a method for finding cmd.exe
apart from relying on %COMSPEC%
? (If so, what is that method?)
If %COMSPEC%
is not set, when or why or how often will %systemroot%\system32\cmd.exe
also be wrong?