How to use special variables like 'windir'

Although it is possible to use some tricks to test it (like piping the SET command to FIND), it is almost impossible to actually use with plain DOS these special variables used by Windows because they are lowercase and COMMAND.COM does not allow you to use them.

The easiest way to access them (even modify them) is to use XSET.