View Single Post
Old 08-09-2007   #3 (permalink)
Shay Levi


 
 

Re: Creating A Variable from the Value of Another

PS C:\Scripts> $a="hello"
PS C:\Scripts> New-Variable -name "$a" -value " world"
PS C:\Scripts> $hi
world

Shay
http://scriptolog.blogspot.com



> I want to be able to create a variable from the value of another
> variable. For example, say that $a=example1. How could I create a
> variable named $example1 by using the data from $a?
>



My System SpecsSystem Spec