0

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.StartInfo.Arguments but i can't pass multiple parameters with it.

1 Answer 1

2

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)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.