Yes, the command line is a good way to pass information to the program. It is available from the Main function of any .Net program.
public static void Main(string[] args) {
Elsewhere in the program, you can access it by calling Environment.GetCommandLineArgs . Be careful though the command line information may be changed after the program starts. It is just a block of its own memory that can be written by a program
source share