How to Pass Command Line Arguments using Visual Studio

Visual Studio enables excellent features where you can do this in the,Project Properties window on the Debug tab. Here are the steps to achieve this

1. Right-Click on Project from Solution Explorer Select Properties.

2. In the Project Properties Windows, Navigate to Debug Tab

3. You will Find the text box Command Line

So, here you can type the command line with separated by Space.

paramsvs

Note: Only separate with space ” “.

We write a simple console application to print the command line argument, and put a breakpoint to check the arguments,

paramsvs2

How to Pass Command Line Arguments using Visual Studio
5 (100%) 2 vote[s]