I'm developing an application which needs to run on the client machine. This application is donwloaded from the website. Before this application I have to pass some arguments to it. I dont know how it can be done.
Thanks in advance.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit ChoudharyPosted Jul 8, 2010, 2:28 AM
you can always pass argument with you exe file while calling it for execution. cuase Main(String[] arg) contain array to hold the value of arguments.
so it depends on condition whether you used it in your function or not..
Please mark " Do you liek this post " if it helps you.
Anand UchagawkarPosted Jul 7, 2010, 2:23 PM
What do you mean by passing the arguments? How do you want to run that application? If that is a normal .exe (say - MyApp.exe) then from command line utility you can just type
C:\MyApp.exe -argument1 -argument2 -argument3 ...
If you want use the argument in your .Net application then you can access the arguments passed as above from the below code,
public static int Main(string[] args)
{
}