%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.
- Creating a customized Command Prompt shortcut - Example of COMSPEC usage
|This Microsoft Windows article is a stub. You can help Wikipedia by expanding it.|