Re: Command to identify Windows boot directory



%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 news:B77E0806-7941-4D02-8D0C-C79FF76D57EF@xxxxxxxxxxxxx,
John Williams <JohnWilliams@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
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!

.



Relevant Pages

  • Re: Help and Support program
    ... %Systemroot% is nothing but your Windows folder. ... The above did not help me restore my Help and Support opening page. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Editing the boot.ini file in Windows 2000
    ... You do indeed have access to the root of the system and or boot ... Microsoft MVP [Windows] ... | You can access the root folder without enabling the Local Security Policy ... The %SystemRoot% folder and the subfolders of the Windows ...
    (microsoft.public.win2000.general)
  • Re: DUN icon missing
    ... %SystemRoot% is one of the system's environmental variables. ... It will return the drive and folder name that your system was installed on. ... Mine is C:\WINDOWS because I upgraded from Windows 98SE. ... Now I wonder, the tech has done 8 W2K installs before, ...
    (microsoft.public.win2000.general)
  • Re: Spybot Error Message
    ... No apologies are necessary. ... MS-MVP Windows Shell/User ... > The PATH under Environment Variables was different ... >> %systemroot% is an environment variable that is the location of the ...
    (microsoft.public.windowsxp.general)
  • Re: How to create relative file paths. We may need to encrypt the name of the Windows folder so the
    ... > Maybe when installing Windows, ... > folder, just slightly altering the name of the folder so that the ... Examples of Environment Variables: ...
    (microsoft.public.windowsxp.newusers)

Loading