Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-10-2009
Member
 
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?
Reply With Quote
  #2  
Old 06-10-2009
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
  #3  
Old 06-10-2009
Member
 
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?
Reply With Quote
  #4  
Old 06-10-2009
Member
 
Join Date: May 2008
Posts: 2,293
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Problem with the command set Path"
Thread Thread Starter Forum Replies Last Post
Winrar command line path extraction Catchkuber Windows Software 8 27-09-2011 10:37 PM
How to execute a command without entering path on CentOS 5.5? pREMAsAGAR Operating Systems 5 07-05-2011 12:09 PM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
Change Default Windows Installation Path to Your Desired Path phones Tips & Tweaks 0 23-03-2009 11:32 PM
Windows cannot access the specified device path or file problem Gilbert Windows Server Help 5 25-01-2009 09:37 PM


All times are GMT +5.5. The time now is 02:21 PM.