setting environment variables in Win2000

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 01 January 2004   #1
setting environment variables in Win2000

Hey,

I'd like to setup my win2000 global environment variables through the command prompt or a perl command. I know I can set them up using the system tab, but I want to be able to automate it with a script and change from a script.

Please if anyone knows how to do this, please help

Thanks!

later
loked
 
Old 01 January 2004   #2
Try something like
set VARIABLE_NAME=VALUE
,
and then type in set to list all environment variables to check that it's there.
__________________
Carpe Jugulum
 
Old 01 January 2004   #3
Thanks Daftie, but I forgot to mention that doing it that way from the command prompt doesnt store your variable through sessions. So if I close that command prompt and open a new one my variable is lost. I want to be able to store one the same way I store a system variable from the system tab. So I can even reboot and it will store it for me.

Thanks anyway!

later
loked
 
Old 01 January 2004   #4
this might be of some use for you,if you're looking at using perl.
http://www.geocities.com/SiliconVal...312/regexts.htm

Might have changed some for current perl version,
but that should be doable to figure out.

The win32 module prolly has what you need...
Never really looked into it,as I'm just a lowly perl noob,
but I would imagine that's the place to look for this stuff.

[EDIT]
Might look at one of these:
http://search.cpan.org/search%3fmod...32API::Registry
[/EDIT]
__________________
Carpe Jugulum

Last edited by dAfTiE : 01 January 2004 at 10:34 PM.
 
Old 01 January 2004   #5
That looks exactly like what I was looking for. Thanks alot!!

later
loked
 
Old 01 January 2006   #6
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:51 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.