Systemroot (Recovery Console)

How to Use the Systemroot Command in the Windows XP Recovery Console

The systemroot command is a Recovery Console command that sets the current folder you are working in as the systemroot folder.

Systemroot Command Syntax


The systemroot command has no additional switches or options.

Systemroot Command Examples


In the above example, typing the systemroot command will set the %systemroot% environment variable to the directory that you type the command from.

For example, if you are working in the C:\Windows directory and you type the systemroot command, the %systemroot% environment variable will be set to C:\Windows.

Systemroot Command Availability

The systemroot command is only available from within the Recovery Console in Windows 2000 and Windows XP.