 <p>You want to inspect the <a href="http://msdn.microsoft.com/en-us/library/system.environment.commandline%28v=vs.110%29.aspx" rel="nofollow">Environment.CommandLine</a> Property</p> <blockquote> <p>This property provides access to the program name and any arguments specified on the command line when the current process was started.</p> <p>The program name can include path information, but is not required to do so. Use the <a href="http://msdn.microsoft.com/en-us/library/system.environment.getcommandlineargs.aspx" rel="nofollow">GetCommandLineArgs</a> method to retrieve the command-line information parsed and stored in an array of strings.</p> </blockquote>