Environment.CommandLine
using System;
class MainClass
{
public static void Main()
{
Console.WriteLine("Command Line: {0}", Environment.CommandLine);
Console.WriteLine("Current Directory: {0}", Environment.CurrentDirectory);
Console.WriteLine("Machine Name: {0}", Environment.MachineName);
Console.WriteLine("Stack Trace: {0}", Environment.StackTrace);
Console.WriteLine("System Directory: {0}", Environment.SystemDirectory);
Console.WriteLine("Tick Count: {0}", Environment.TickCount);
Console.WriteLine("Version: {0}", Environment.Version);
Console.WriteLine("Working Set: {0}", Environment.WorkingSet);
}
}
Related examples in the same category