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)
精彩评论