开发者

How to call exe with multiple arguments from VB.Net Source?

How to call exe with multiple arguments from VB.Net Source. Now, I can call exe file with mmyProcess.StartInfo.FileName ="....exe" and pass parameters with myProcess.Sta开发者_运维百科rtInfo.Arguments but i can't pass multiple parameters with it.


You can pass multiple arguments to myProcess.StartInfo.Arguments by separating them with a space like this:

myProcess.StartInfo.Arguments = "first second third"

If you need spaces, use this:

myProcess.StartInfo.Arguments = string.Format("""{0}"" ""{1}"" ""{2}""", first, second, third)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜