i tried to read passed parameter,
for example:
shell:
MyApplication.exe -t 1233123
MyApplication Code:
dim tt as string = GetArgo(0).toString()
i want to get the “1233123” (i tried Me.Startup but i there is no Startup event in my form)
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 get hold of the arguments by calling
Environment.GetCommandLineArgs:And then you can iterate through this array just like you would any other array. Remember that the first item in the array is the file name of the executing program.