Init() 개인적인 메소드

Load folder configuration.
private Init ( string folderName ) : void
folderName string
리턴 void
예제 #1
0
        /// <summary>
        /// Main method, pass folder name as argument.
        /// </summary>
		public static void Main (string[] args)
		{
            // Check arguments.
            if (args.Length < 1)
            {
                System.Console.WriteLine("Usage: CmisSyncOnce.exe mysyncedfolder");
                System.Console.WriteLine("Example: CmisSyncOnce.exe \"192.168.0.22\\Main Repository\"");
                System.Console.WriteLine("See your folders names in C:\\Users\\you\\AppData\\Roaming\\cmissync\\config.xml or similar");
                return;
            }

            // Load and synchronize.
			CmisSyncOnce once = new CmisSyncOnce();
			once.Init(args[0]);
            once.Sync();
		}
예제 #2
0
        /// <summary>
        /// Main method, pass folder name as argument.
        /// </summary>
        public static void Main(string[] args)
        {
            // Check arguments.
            if (args.Length < 1)
            {
                System.Console.WriteLine("Usage: Oris4SyncOnce.exe mysyncedfolder");
                System.Console.WriteLine("Example: Oris4SyncOnce.exe \"192.168.0.22\\Main Repository\"");
                System.Console.WriteLine("See your folders names in C:\\Users\\you\\AppData\\Roaming\\oris4sync\\config.xml or similar");
                return;
            }

            // Load and synchronize.
            CmisSyncOnce once = new CmisSyncOnce();

            once.Init(args[0]);
            once.Sync();
        }