Version 4 of COMSPEC

Updated 2008-11-06 12:04:29 by LV

[What is the purpose of this Windows environment variable and how does it impact Tcl?]

MHo: COMSPEC holds the path to the current command processor (command shell), which is something like c:\windows\system32\cmd.exe on modern windows versions. On Windows 9.x, the command shell is command.com instead of cmd.exe, which is a relict from 16 bit-MSDOS-days (still present for compatibility reasons). Programs could (and should) shell/exec to env(comspec) instead guessing what the command processor is ;-) I don't know how this environment variable is used by tcl internally...