Cannot Set Path From Command Line

  • Thread starter Thread starter goldtech
  • Start date Start date
G

goldtech

Hi,

I have admin privileges on my laptop. I can install programs do what ever I want. So I try from cmd.exe

path %PATH%;C:\zztop

or

set PATH=%PATH%;C:\zztop

When I go control panel> system>advanced>environmental variables and look in System variables> path (edit) there's no C:\zztop after reboot not there. I want the change for all users so I want to change the System variables path.

How is this done?

Thanks
 
I have admin privileges on my laptop. I can install programs do
what ever I want. So I try from cmd.exe

path %PATH%;C:\zztop

or

set PATH=%PATH%;C:\zztop

When I go control panel> system>advanced>environmental variables
and look in System variables> path (edit) there's no C:\zztop
after reboot not there. I want the change for all users so I want
to change the System variables path.

How is this done?

When you set the path from the command line like that, the change is
only good for that command session. To permanently change the path, you
must do it in the Environment Variables | System Variables dialog box.
 
Nil said:
When you set the path from the command line like that, the change is
only good for that command session. To permanently change the path, you
must do it in the Environment Variables | System Variables dialog box.

And it's also possible, the Environment Variables | System Variables
stores the results in the registry. So the registry is the actual
recipient, of a system-wide persistent path change. In this example,
I'm showing the system path variable, rather than mine.

http://imageshack.us/a/img560/5320/bpp.gif

Paul
 
On Sun, 29 Sep 2013 13:19:43 -0700 (PDT), "goldtech"
Hi,

I have admin privileges on my laptop. I can install programs do what ever I want. So I try from cmd.exe

path %PATH%;C:\zztop

or

set PATH=%PATH%;C:\zztop

When I go control panel> system>advanced>environmental variables and look in System variables> path (edit) there's no C:\zztop after reboot not there. I want the change for all users so I want to change the System variables path.

How is this done?

Thanks

You can use the SETX utility. SETX is not a native windows XP command,
but it comes with the Support Tools CD of Windows XP Pro. I do not know
if it is available for non-pro versions of Windows XP.

http://www.microsoft.com/en-us/download/details.aspx?id=18546
 
Back
Top