Jump to content

COMSPEC

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 178.77.178.102 (talk) at 11:44, 2 December 2013. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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