I open an .exe file in CMD shell like this:
d:/program1.exe text1 text2 text3 text4 text5
How can i use text3 text4 text5 as single parameter? Thanks
I open an .exe file in CMD shell like this: d:/program1.exe text1 text2 text3
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 should use quotes around parameters that contain spaces:
When you invoke you program like this ParamStr(1) is ‘text1’, ParamStr(2) is ‘text2’ and ParamStr(3) is ‘text3 text4 text5’.