How do you do command line arguments?
A command line argument is simply anything we enter after the executable name, which in the above example is notepad.exe. So for example, if we launched Notepad using the command C:\Windows\System32\notepad.exe /s, then /s would be the command line argument we used.
How to use command line arguments in C#?
Note : To enable command-line arguments in the Main method in a Windows Forms Application, one must manually modify the signature of Main in program. cs. Windows Forms designer generates code and creates Main without an input parameter.