Reputation: 101
first sorry for my English.
I't use powershell but I have to make a script to generate some SSRS's reports. I need to concatenate two variables and convert the result to uppercase, the code below works fine but I't know convert the result to uppercase and put it, for example, into other variable. Thanks a lot
$direxcel = "C:\Users\Administrador\Documents\SSRS"
$rdl = "Sin Título"
write-host ${direxcel}\$rdl.xls
Upvotes: 2
Views: 5330
Reputation: 2952
To concatenate strings you can use several options.
$a = "first string"
$b = "second string"
$c = "$a $b"
or simply (but not necessarily recommended)
$c = $a + $b
To make something upper case.
$c = "$a $b".ToUpper()
Upvotes: 5