COMSPEC
Appearance
ComSpec (or %COMSPEC%
) is one of the environment variables used in MS-DOS and Microsoft Windows, which normally points to the command line interpreter, which is by default command.com in MS-DOS or cmd.exe in Windows NT. ComSpec can be displayed by typing SET COMSPEC or ECHO %COMSPEC% at the command prompt.
The ComSpec environment variable by default points to the full path of the command line interpreter.
In MS-DOS, ComSpec is the secondary command line interpreter, which can be anywhere on your system and does not need to be named COMMAND.COM. It can also be made by a different company or be a different version.[1]
References
External links
- Creating a customized Command Prompt shortcut - Example of COMSPEC usage