PowerShell: How do I set an Environment variable as the directory represented by another env. variable -


the title not clear enough since i'm not sure i'm using correct jargon; reason not finding solutions issue yet.

i've been able use powershell append directory path using:

[environment]::setenvironmentvariable("path", $env:path + ";%domino_home%", [environmentvariabletarget]::machine) 

however, how can set directory represented domino home?

for instance, in batch file, %domino_home% literally add it's directory - e:\lotus\domino , %%domino_home%% add %domino_home%.

i want able add directory (e:\lotus\domino) using powershell.

thanks.

easy enough, of environment variables stored in $env: variable. makes entire task easier...

$env:path += ";$env:domino_home" 

that should append %domino_home% end of path. (worked me , environment variable vs90comntools)


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -