コード例 #1
0
        static new void Main(string[] args)
        {
            if (args.Length < 4)
            {
                MultiImageUpload.Usage();
                return;
            }

            string fullpath = Path.GetFullPath(args[3]);

            if (!Directory.Exists(fullpath))
            {
                Console.WriteLine("Directory does not exist: " + fullpath);
                return;
            }

            MultiImageUpload app = new MultiImageUpload(fullpath);

            app.Connect(args[0], args[1], args[2]);
            app.doStuff();
            app.Disconnect();
        }
コード例 #2
0
        static new void Main(string[] args)
        {
            if (args.Length < 4)
            {
                MultiImageUpload.Usage();
                return;
            }

            string fullpath = Path.GetFullPath(args[3]);

            if (!Directory.Exists(fullpath))
            {
                Console.WriteLine("Directory does not exist: " + fullpath);
                return;
            }

            MultiImageUpload app = new MultiImageUpload( fullpath );
            app.Connect(args[0], args[1], args[2]);
            app.doStuff();
            app.Disconnect();
        }