Command to identify Windows boot directory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I cannot remember...what is the command to type to identify which Windows
installation you are booting from?

It's something like %windows...etc.

Thanks!
 
In
John Williams said:
I cannot remember...what is the command to type to identify which
Windows installation you are booting from?

It's something like %windows...etc.

Thanks!

Type "set" in a command prompt to see all the variables - I think you're
looking for %windir%
 
%systemroot% is an environment variable that is the location of the Windows
root folder.

Typing or pasting %systemroot% into the Start | Run box opens to the Windows
folder on whatever drive it is located. I.e. C:\WINDOWS or C:\WINNT.

systemroot definition from C:\WINDOWS\Help\glossary.chm
[[The path and folder name where the Windows system files are located.
Typically, this is C:\Windows, although you can designate a different drive
or folder when you install Windows. You can use the value %SYSTEMDRIVE% to
replace the actual location of the folder that contains the Window system
files. To identify your systemroot folder, click Start, click Run, type
%systemroot% and then click OK.]]

%windir% is an environment variable that is the location of the system
folder.

Typing or pasting %windir% into the Start | Run box opens to the Windows
folder on whatever drive it is located. I.e. C:\WINDOWS or C:\WINNT.

Windows XP can be installed in either WINDOWS or WINNT.

If %systemroot% and %windir% are the same, then obviously %windir% is easier
to type.

For a table of environment variables...
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/ntcmds_shelloverview.htm

Then scroll down to:
The following table lists the system and local environment variables for
Windows XP.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top