How do I replace spaces with in PowerShell?

前端 未结 4 1606
终归单人心
终归单人心 2020-12-29 18:47

I\'m creating a PowerShell script that will assemble an HTTP path from user input. The output has to convert any spaces in the user input to the product specific codes, \"%2

4条回答
  •  天命终不由人
    2020-12-29 19:24

    For newer operating systems, the command is changed. I had problems with this in Server 2012 R2 and Windows 10.

    [System.Net.WebUtility] is what you should use if you get errors that [System.Web.HttpUtility] is not there.

提交回复
热议问题