A windows .NET application may get the command line arguments which have been provided during startup. The parsing of the command line arguments and converting them to individual tokens is done by windows and the application gets an array of arguments.
Could I perform this parsing myself? The reason why I'm asking is I would like to provide the user of my application a way to specify command line options in a separate file so that the user only needs to specify this file as a command line argument.
However converting a line in a file to command line arguments is not trivial. I must support things like environment variable expansions and quoted strings.
Is there an easy way to do this?