Beispiel #1
0
        static void Main(string[] args)
        {
            //načtení informací z config
            //string test1 = ReadSetting("Setting1");

            //nová složka
            string path = "C:\\Nová_složka\\složka na test sdílení";

            fileNew(path);

            //oprávnění

            /*
             * Console.WriteLine(path);
             * Console.WriteLine("");
             * RemoveDirectorySecurity(path, @"Authenticated Users", FileSystemRights.ReadData, AccessControlType.Allow);
             * AddDirectorySecurity(path, @"sitel\Domain Admins", FileSystemRights.ReadData, AccessControlType.Allow);
             * AddDirectorySecurity(path, @"sitel\ftester", FileSystemRights.ReadData, AccessControlType.Allow);
             * ReadDirectoryRight(path);
             */

            //sdílení
            WHSInfoClass pInfo = new WHSInfoClass();


            Console.ReadLine();
        }
Beispiel #2
0
 public MainTabUserControl()
 {
     InitializeComponent();
     ClamAVConfig = new ClamConfig();
     pInfo        = new WHSInfoClass();
     pInfo.Init("WHSClamAV");
     PopulateSharesMenuItem();
 }
Beispiel #3
0
        public WHSClamAVScan()
        {
            InitializeComponent();

            ClamAVConfig = new ClamConfig();

            timer          = new System.Timers.Timer(60000); // check every minute
            timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);

            pInfo = new WHSInfoClass();
            pInfo.Init("WHSClamAVService");

            pInfo.RegisterForNotifications(this);
        }