Invoke-WebRequest : A positional parameter cannot be found that accepts argument '+'.
The plus operator works in other contexts to build strings. What is the correct syntax to do it in this case? (I’ve done some online searching but can’t find it.) Thanks for any pointer.
I’m a big fan of the c# style string builder.Here is your example, and I’ve made a few other examples on string building as well.
[pre]
PS> “{0}{1}” -f “https://www.example.com”,“/relativepath” https://www.example.com/relativepath
[/pre]