Get the command line for this process in CSharp

Description

The following code shows how to get the command line for this process.

Example


using System;//from   w  ww. ja va  2s .  co  m

class Sample 
{
    public static void Main() 
    {
        
        Console.WriteLine("CommandLine: {0}", Environment.CommandLine);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Development »




Console
Encoding
Environment
Random