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

Sponsored Links



Setting environment variables?

Vista Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-06-2006
Chaz
 
Posts: n/a
Setting environment variables?

I want to set a permanent environment variable for the currently logged on
user - as far as I can tell this would be done from the Environment Variables
dialog under the Advanced settings of the System control panel.

BUT - I'm a normal user, and can only access the Advanced Settings by
providing Admin credentials. At which point the User variables that can be
set in the dialog are for the admin account that I just authenticated with!

Is there any way I can get round this and set up persistent environment
variables as a non-admin user?


Reply With Quote
  #2  
Old 23-06-2006
Jimmy Brush
 
Posts: n/a
Re: Setting environment variables?

Nice bug find! :)

Yes, you can get around this with the setx command.

- Open a command prompt
- Type: setx variable value

Note, that value must be enclosed in quotes if it contains any spaces.

For example,

setx MYDIR "c:\documents and settings\"

For more info on setx, check out:
http://www.ss64.com/nt/setx.html
http://technet2.microsoft.com/Window...d86331033.mspx
Reply With Quote
  #3  
Old 23-06-2006
Chaz
 
Posts: n/a
Re: Setting environment variables?

"Jimmy Brush" wrote:
> Yes, you can get around this with the setx command.


Doh! Thanks for the pointer.

I hope this kind of bug gets caught over time. I'm sure there are a number
of similar instances where you can't just lock down the entire functionality
of an existing dialog box without breaking something!

Reply With Quote
  #4  
Old 18-01-2009
Old Holborn
 
Posts: n/a
Re: Setting environment variables?


This is just a Linux fan posting the solution for
an 'old thread of this forum'
(http://www.vistax64.com/vista-accoun...ariables.html).
Accept my apologies
if it has been already answered in another thread.
Google still links there, and no answer can be
posted as it is too old. :(

The how-to can be found 'here'
(http://support.microsoft.com/kb/931715), as stated in the
'Microsoft Help and Support' site.

Cheers.


--
Old Holborn
Reply With Quote
Reply

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Setting environment variables?"
Thread Thread Starter Forum Replies Last Post
What are an Environment Variables in PHP? N I C K Software Development 5 21-02-2010 01:29 AM
c# environment variables EULALIA Software Development 3 13-07-2009 02:23 PM
How to load/refresh environment variables WITHOUT leaving command prompt? troy Windows XP Support 3 15-05-2009 11:33 PM
How to change/add environment variables from command line PERMANENTLY? Moiz Windows XP Support 2 01-04-2009 05:46 PM
set environment variables in script .bat Creezeer Windows Server Help 1 14-03-2007 12:06 PM


All times are GMT +5.5. The time now is 09:36 PM.