Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Concatenation Variables Problem with extra space

$
0
0

That's because you're using Write-Host and passing it two parameters.

"$($_.ServerName)$($blah.ShareName)"

You should look into Join-Path, though. It's specifically designed for joining path components.


Viewing all articles
Browse latest Browse all 13067

Trending Articles