on start ->Run a run prompt appears and you type notepad.exe to runt he notepad application. Suppose you want to open particular file in notepad you can pass the command line argument like
The above statement will open the notepad application with the mentioned filed name.
Comming to programming life i would like to give few examples, which indicates the importance of command line arguments
1. Invoking a com component with different performance options
such command line arguments are used to start the application with different configuration settings
2. Start the executable with different language code passed during the execution
It is upto the MyApplication.exe to handle how the command line arguments are used.
3. Suppose you have an application which should run differently depending on the client code or location code .You can pass thorugh command line.
static void Main(strng args) here args array recieves the command line arguments when invoking the program
args 1st parameter
args 2nd parameter and so on....