Process.Start - Pass html code to exe as argument

后端 未结 4 1097
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-19 05:09

I am using the code below to start a executable file from a windows service and I need to pass html code (stored in a variable) as an argument. I am escaping with double quo

4条回答
  •  梦谈多话
    2021-01-19 06:06

    You may need to encode the following characters to make them passable in a command line argument:

    • Double quotes
    • Carriage returns
    • Line feeds

提交回复
热议问题