Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Dynamically creating / evaluating variables

$
0
0
I can't remember where I saw this, and can't find it now :-(I want the value of $cTime to be the current value of $Hourly8, namely, 10$Hourly8 = 10$Hour = 8$Var = $($('$Hourly'+$Hour))set-Variable -Name cTime -Value $("$var")$cTimeThanks!

Viewing all articles
Browse latest Browse all 467

Trending Articles