SystemRoot
From Environment Variables
SystemRoot environment variable is a special system-wide environment variable, its value is the location of the system folder, including the drive and path.
The drive is the same as SystemDrive variable value.[1]
echo %SystemRoot% C:\WINDOWS
Default value
The default value of SystemRoot environment variable is in most cases C:\WINDOWS.
References
See also
AllUsersProfile | AppData | CD | ClientName | CmdCmdLine | CmdExtVersion | ComSpec | CommonProgramFiles | ComputerName | Date | ErrorLevel | HomeDrive | HomePath | LocalAppData | LogonServer | Number Of Processors | OS | Path | PathExt | Processor Architecture | Processor Identifier | Processor Level | Processor Revision | ProgramFiles | Prompt | Random | SessionName | SystemDrive | SystemRoot | Temp | Time | Tmp | UserDnsDomain | UserDomain | UserName | UserProfile | WinDir