Path Command

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hi

Running XP Home

Would like to add another directory to the PATH variable, such that this
directory is always included whenever I boot the machine / start a Command
shell session using cmd.exe etc

Have tried adding the command

path %path%;C:\newdirectory

to the end of the autoexec.nt file in C:\windows\system32 but this did not
seem to work.

Any suggestions appreciated

Thanks

Jon
 
Jon said:
Hi

Running XP Home

Would like to add another directory to the PATH variable, such that this
directory is always included whenever I boot the machine / start a Command
shell session using cmd.exe etc

Have tried adding the command

path %path%;C:\newdirectory

to the end of the autoexec.nt file in C:\windows\system32 but this did not
seem to work.

Any suggestions appreciated

Thanks

Jon

The command is SET (not PATH)

set path=%path%;C:\newdirectory
syntax: set [[/a [expression]] [/p [variable=]] string]

OR: (from
http://support.microsoft.com/default.aspx?scid=kb;en-us;310519&Product=winxp)

Right-click My Computer, and then click Properties.
On the Advanced tab, click Environment Variables.
If there is already a PATH variable, edit it to add the new value, otherwose
add a PATH variable with the appropriate value
Apply the settings.
 
Jon said:
Would like to add another directory to the PATH variable, such that this
directory is always included whenever I boot the machine / start a Command
shell session using cmd.exe etc

Have tried adding the command

path %path%;C:\newdirectory

to the end of the autoexec.nt file in C:\windows\system32 but this did not
seem to work.

Do it at Control Panel - System - Advanced - in Environmental variables
you can select and edit the PATH variable: this is then available to
Windows programs as well as to CMD. Leave the leading items
(%Systemroot% ones) and put anything you add after them
 
Jon said:
Would like to add another directory to the PATH variable, such that this
directory is always included whenever I boot the machine / start a Command
shell session using cmd.exe etc

Have tried adding the command

path %path%;C:\newdirectory

to the end of the autoexec.nt file in C:\windows\system32 but this did not
seem to work.

Try the command line utility pathman.exe

http://tinyurl.com/w6co

It's a Win2K app, but works ok in XP as well
Val
--
Bringing you BeadWizard Design Software
www.beadwizard.com
***************************
Practice safe eating -- always use condiments.
***************************
 

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

Back
Top