May 14, 2016

PowerShell - Write-Host variables without space

PS C:\> $a = "Hello"
PS C:\> $b = "World"
PS C:\> Write-Host $a $b
Hello World
PS C:\> Write-Host $a World
Hello World

PS C:\> Write-Host $a"$b"
HelloWorld
PS C:\> Write-Host $a"World"
HelloWorld

No comments:

Post a Comment