The systemroot command is a Recovery Console command that sets the current folder you’re working in as the systemroot folder.
Systemroot Command Availability
The systemroot command is only available from within the Recovery Console in Windows 2000 and Windows XP.
Systemroot Command Syntax
systemroot
This command has no additional switches or options.
Systemroot Command Examples
In this example, entering systemroot will set the %systemroot% environment variable to the directory that you type the command from.
For example, if you’re working in the C:\Windows directory, entering systemroot will set the %systemroot% environment variable to C:\Windows.
Systemroot is different from a root folder/directory. That term refers to the “highest” directory in a folder structure, but it isn’t used as a command like systemroot is.
Get the Latest Tech News Delivered Every Day