Beispiel #1
0
    public static void Main(string[] args)
    {
        if (args.Length < 1)
        {
            Console.WriteLine("Unexpected # of arguments to Main(): {0} ", args.Length);

            throw new System.ArgumentException("Call with name of directory");
        }

        else
        {
            string dirPath = args[0];

            Console.WriteLine("Directory to list: {0}", dirPath);

            ListClass.ListContents(dirPath);
        }
    }