bpayne111 Posted May 1, 2004 Posted May 1, 2004 How can i add a switch to my console app. ie myapp/? would display help about my app (hmm look familiar to anyone?) thanks brandon Quote i'm not lazy i'm just resting before i get tired.
*Experts* mutant Posted May 1, 2004 *Experts* Posted May 1, 2004 If you want to read command line arguments take a look at System.Environment.CommandLine property, or System.Environment.GetCommandLineArgs method. Quote
JABE Posted May 1, 2004 Posted May 1, 2004 Use Environment.GetCommandLineArgs() to retrieve the arguments passed to the executable. Parse/evaluate the command line args to set the flow of your program. Quote
bpayne111 Posted May 1, 2004 Author Posted May 1, 2004 just what i needed guys. thanks brandon Quote i'm not lazy i'm just resting before i get tired.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.