_DOS |
|
_DOS returns the operating system type. Take Command returns a different value depending on the operating system, as follows:
Platform |
Take Command |
Windows XP |
WINXP |
Windows 2003 |
WIN2003 |
Windows Vista |
WINVISTA |
Windows 2008 |
WIN2008 |
This variable is useful if you have batch files running in more than one environment, and need to take different actions depending on the underlying operating environment or command processor. See also the _WINVER variable.