Cannot Set Path From Command Line

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
 
N

Nil

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.
 
P

Paul

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
 
Z

Zaphod Beeblebrox

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
 

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