I have three paths that I want to be 3 separate arguments passed into an executable. I do startinfo.arguments, but how do I separate these so the executable knows they are three different arguments?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can simply pass these to the argument property with spaces separating them as you would at the command prompt, enclosing any containing spaces in double quotes.
Update:-
As an example of enclosing spaces in arguments, to copy ‘foo bar baz.txt’ to ‘this is a test.txt’:-
The syntax is clumsy, but has the advantage of being consistent with how you would do it at the command line, as pointed out by @Ed S.