Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to change/add environment variables from command line PERMANENTLY?

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 01-04-2009
Member
 
Join Date: Nov 2005
Posts: 91
How to change/add environment variables from command line PERMANENTLY?

If I am opening a command prompt in Windows XP and type - set FOOBAR=D:\test\project, then the environment variable FOOBAR is set for this command prompt session to the new value. But it is not changed for the global environment of the whole machine? To change it for the global machine I have always to go to, Control Panel > System > Advanced tab > Environment Variable Button and then change it manually there. Can anyone tell me a way to change the global env varible values from comman line? Thanks.

Reply With Quote
  #2  
Old 01-04-2009
Member
 
Join Date: Jan 2006
Posts: 605
Re: How to change/add environment variables from command line PERMANENTLY?

After you have run the set command then run of the below commands as well:
setx.exe (Win2000 Resource Kit)
Reply With Quote
  #3  
Old 01-04-2009
Member
 
Join Date: Jun 2006
Posts: 619
I think that in Windows XP SP2 there is a tool named setx.exe that lets you to change global Environment variables from the command line itself.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to change/add environment variables from command line PERMANENTLY?"
Thread Thread Starter Forum Replies Last Post
Importance of Command Line User Environment in Linux aFRODITA Operating Systems 4 12-11-2010 06:31 AM
Is " CLUE" Command Line User Environment important aspect of linux Loyalpalm Operating Systems 5 11-11-2010 10:10 AM
Remove system environment variable using command line ? Vilius Mockūnas Windows Server Help 1 12-06-2009 04:10 PM
How to load/refresh environment variables WITHOUT leaving command prompt? troy Windows XP Support 3 15-05-2009 11:33 PM
XP screen resolution change from command line ? Kalav Windows XP Support 2 23-09-2008 06:45 PM


All times are GMT +5.5. The time now is 09:19 AM.