MatthewMiller
Technical User
I'm new to TCL, but would like to write a short script to change a windows environment variable. If I write
puts $env(VARIABLE)
I can correctly read the variable, however when I write
set $env(VARIABLE) VALUE
then go to the control panel (windows xp) the variable that I wanted to change has not been updated.
Here is some sample code that shoul summerize my problem
% puts $env(VARIABLE)
user1
(bin) 2 % set $env(VARIABLE) user2
user2
(bin) 3 % puts $env(VARIABLE)
user1
(bin) 4 %
If anyone can help please do, sample code would be great
puts $env(VARIABLE)
I can correctly read the variable, however when I write
set $env(VARIABLE) VALUE
then go to the control panel (windows xp) the variable that I wanted to change has not been updated.
Here is some sample code that shoul summerize my problem
% puts $env(VARIABLE)
user1
(bin) 2 % set $env(VARIABLE) user2
user2
(bin) 3 % puts $env(VARIABLE)
user1
(bin) 4 %
If anyone can help please do, sample code would be great