将参数发送到包含特殊字符的批处理文件

时间:2017-10-02 02:18:21

标签: batch-file arguments special-characters

如何将http://httpbin.org/get?course=networking&assignment=1作为参数发送到批处理文件?

1 个答案:

答案 0 :(得分:1)

它只是一个参数,所以只需将其置于双引号内即可!

可能是这样的:

"MyScript.cmd" "http://httpbin.org/get?course=networking&assignment=1"

或者也许是这样:

Call "MyScript.cmd" "http://httpbin.org/get?course=networking&assignment=1"