Click here to Skip to main content
16,009,407 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How would I go about adding parameters to a console application? So if I ran it from command prompt with this: (text.exe -j) it would run the app with that parameter. How would I go about doing that?
Posted

There's an article[^] here at CP that tells you how exactly to do it.

Goodluck!
 
Share this answer
 
Please consider using my Command Line utility; it is very robust yet easy to use and automates declaration of parameters and even documenting them:
Enumeration-based Command Line Utility[^].

The article also accurately explains how it works in case you want to do all by yourself.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900