Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to use string format in powershell

# using the format method
[string]::Format("Name = {0}",$name)

# using the format operator
"Name = {0}" -f $name

# using an expanding string
"Name = $name"
 
PREVIOUS NEXT
Tagged: #string #format #powershell
ADD COMMENT
Topic
Name
1+1 =