Environment variable for "System PATH"

P

Prabh

Hello all,
What's the environment variable for the System PATH on XP.
When I do "echo %PATH%" from the command window, it prints out the
User PATH variable and not the System PATH.

Thanks for your time,
Prabh
 
R

Rick \Nutcase\ Rogers

Hi Prabh,

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org
 
G

Guest

P- [11 Oct 2004 14:01:07 -0700]:
What's the environment variable for the System PATH on XP.

Type SET to see what env vars are set up. As for an answer,
it looks like there isn't one, per se. Bound to be in the
registry, or of course you already know how to see it from
the gui.

h:\>set /?
 
T

Torgeir Bakken \(MVP\)

Prabh said:
Hello all,
What's the environment variable for the System PATH on XP.
When I do "echo %PATH%" from the command window, it prints
out the User PATH variable and not the System PATH.

Thanks for your time,
Prabh
Hi

The PATH environment variable is a merge of the system path and the
user path, so if you only see the user part, you have a problem.

I suggest you run the FIXPATH program available here:

http://home.comcast.net/~stewartb/cmdprompt.html#6
 
A

Alex Nichol

Prabh said:
What's the environment variable for the System PATH on XP.
When I do "echo %PATH%" from the command window, it prints out the
User PATH variable and not the System PATH.

See in Control Panel - System - Advanced, Environmental variables.
In mine the one in System - lower pane - has, on Editing,
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;%SYSTEMROOT%\COMMAND;
and items added by third party software. That is the form held in
registry at
HKEY_LOCAL_MACHINE\System\CurrentControlSet
\Control\SessionManager\Environment

As seen in the outer level, the %Systemroot% variable is replaced by the
actual C:\Windows and it is in that form it appears in a PATH command.
The value of Systemroot is held at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top