Thursday, May 2, 2019

Strings in PowerShell

https://mcpmag.com/articles/2015/07/23/strings-in-powershell.aspx

Note "HERE" string

@"
string content goes here; can be multiple line; can include variables; e.g. $varname
"@

Another way of evaluating a string within a string"

$MyName = "State Your Name"

  "Hello $($MyName), today is $((Get-Date).DayOfWeek)"
 
 

No comments:

Post a Comment