How do I pass multiple string parameters to a PowerShell script?

后端 未结 3 448
不思量自难忘°
不思量自难忘° 2021-02-01 14:41

I am trying to do some string concatenation/formatting, but it\'s putting all the parameters into the first placeholder.

Code

function C         


        
3条回答
  •  死守一世寂寞
    2021-02-01 15:16

    Paul's right.
    In PowerShell, function parameters are not enclosed in parenthesis. (Method parameters still are.)
    Your initial call was just passing one big array to the function, rather than the three separate parameters you wanted.

提交回复
热议问题