3.3.1 Command Line Arguments

Using the command line also allows you to specify arguments to the child process. The child process can use the GetCommandLine function to get a pointer to its command line string. Tokens on the command line are separated by white space, and the first token is the name of the executable file. Console applications written in C can also use the argc/argv mechanism to access the command line arguments.