Results 1 to 4 of 4

Thread: Problem with the command set Path

  1. #1
    Join Date
    Jun 2009
    Posts
    96

    Problem with the command set Path

    I would like to add a variable to the Path environment under XP at the following path through a bat file (to avoid going through the boring menu of Windows): C:\Program Files\Havas Medimedia\Common

    I use the following command

    Code:
    set PATH =%PATH%;C:\Program Files\Havas Medimedia\Common
    It works correctly, but when I close the console, the way I added does not appear in the path variable. Is there a way through the previous command to make the addition of the permanent way?

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Problem with the command set Path

    That modifications to the PATH command disappear when closing the console: this changes is valid for the current shell, as well as any child, but NEVER for the parent(s). For what you want to do that, I do not know if it is in the registry or a file.

  3. #3
    Join Date
    Jun 2009
    Posts
    96

    Re: Problem with the command set Path

    I want to change the path through a batch, but these changes are not taken into account via console. Is there a way in the Windows registry which might allow me to pass this way?

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Problem with the command set Path

    Utility setx of W2K allows you to change variables of machines. You can also do the same thing via Windows Registry as follows:

    Code:
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment||Path

Similar Threads

  1. Winrar command line path extraction
    By Catchkuber in forum Windows Software
    Replies: 8
    Last Post: 27-09-2011, 10:37 PM
  2. How to execute a command without entering path on CentOS 5.5?
    By pREMAsAGAR in forum Operating Systems
    Replies: 5
    Last Post: 07-05-2011, 12:09 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Replies: 0
    Last Post: 23-03-2009, 11:32 PM
  5. Windows cannot access the specified device path or file problem
    By Gilbert in forum Windows Server Help
    Replies: 5
    Last Post: 25-01-2009, 09:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,954,906.85916 seconds with 16 queries