示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("MjFS v2 - An SQL based file system");
            Console.WriteLine();

            if (!Helper.IsUserAdministrator())
            {
                Console.WriteLine("Please run this program with administrator privilleges.");
                Console.Read();
            }
            else
            {
                VolumeMountManager vMan = VolumeMountManager.GetInstance();
                vMan.MountBagVolumes();
                SynchronizationManager.GetInstance().StartSynchronization(new List <string>(vMan.DiscoveredBagVolumes.Keys));
                vMan.MountMainVolume();
            }
            Console.WriteLine("Application exited");

            Console.Read();
        }