PC Review


Reply
Thread Tools Rate Thread

Command to identify Windows boot directory

 
 
=?Utf-8?B?Sm9obiBXaWxsaWFtcw==?=
Guest
Posts: n/a
 
      27th Feb 2007
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!
 
Reply With Quote
 
 
 
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a
 
      27th Feb 2007
In news:B77E0806-7941-4D02-8D0C-(E-Mail Removed),
John Williams <(E-Mail Removed)> typed:
> 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%


 
Reply With Quote
 
Wesley Vogel
Guest
Posts: n/a
 
      27th Feb 2007
%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-(E-Mail Removed),
John Williams <(E-Mail Removed)> 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!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create/Delete virtual directory in Windows XP Pro IIS by command line foldface@yahoo.co.uk Windows XP Help 2 13th Mar 2010 11:59 PM
identify directory Ditzytwiz Microsoft Word Document Management 2 12th Nov 2008 11:26 PM
Right Hand Click in Windows Explorer to open Command Window in any directory Arthur Rees Windows XP General 3 1st Jul 2006 12:49 AM
how to identify Windows version installed on NON-BOOT drive? Spoon2001 Windows XP General 4 1st Apr 2006 03:57 AM
Boot into windows\system32 directory Mark Windows XP Setup 0 2nd Sep 2003 12:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 PM.