I am passing parameters from start-run to my windows application.
What I came to know is that you cannot pass more than 259 characters .
I have an windows application in C# where I want to pass arguments.
Initially I gave as commandline arguments, using the enviorment.getcommandlineargs, which did work successfully.
Now the client made a new requirement that instead of going to the command prompt and sending the arguments, he will be sending from start-run line (he will not go to the command prompt). That exe consist of parameters whose length exceeds 259 characters.
How I am supposed to cope up in this scenario.
Use an application config file rather than command line arguments if you have that many configurable items.
If necessary you could always accept the config file location as a command-line argument.