COMSPEC
COMSPEC or ComSpec is one of the
The variable's contents can be displayed by typing SET COMSPEC or ECHO %COMSPEC% at the command prompt.
The environment variable by default points to the full path of the command line interpreter. It can also be made by a different company or be a different version.
Another use of this environment variable is on a computer with no hard disk, which needs to boot from a floppy disk, is to configure a ram disk. The COMMAND.COM file is copied to the ram disk during boot and the COMSPEC environment variable is set to the new location on the ram disk. This way the boot disk can be removed without the need to reinsert it after a big application has been stopped. The command line interpreter will be reloaded from the ram disk instead of the boot disk.
References
- ^ PC-DOS 7.0 User Guide (1st ed.). IBM. January 1995. pp. 55, 283, 290.
- ^ "Idiosyncrasies – Odd, Surprising, Un(der)documented or Weird (Mis)behaviour of Microsoft® Windows® NT".
External links
- Creating a customized Command Prompt shortcut - Example of COMSPEC usage