Archive: root drive variable


root drive variable
If $SYSDIR is the variable for the system directory (C:\windows\system32), what is the variable for the system drive letter?

If I want to create a directory at the root of the C drive and I don't know if the root drive letter is C or D or E, what variable do I use?

Hypothetical example:
Createdirectory "$DRIVELETTER\NewFolder"

Thanks!


StrCpy $0 $WINDIR 2
CreateDirectory "$0\NewFolder"