How to Pass Command Line Arguments using Visual Studio ?
Visual Studio enables a nice features where you can do this in the
Project Properties window, on the Debug tab. Here is the steps to achieve this
1. Right Click on Project from
Solution Explorer and Select Properties.
2. In the Project Properties Windows, Navigate to
“Debug Tab”
3. You will Find the a text box
“Command Line”
Well, here you can type the command line with separated by
Space.
Just write a simple console application to print the command line argument, and put a breakpoint to check the arguments,
So, the each value separated by space has taken has a a command line argument. This will produce below output.
No comments:
Post a Comment