Пример #1
0
        public void Verify()
        {
            var t = new FolderShareTask();
            t.PointingTo = @"C:\temp";
            t.ShareName = "dk_test";
            t.Server = Environment.MachineName;

            var r = t.VerifyCanRun();
        }
Пример #2
0
        public void Execute()
        {
            if(Directory.Exists(".\\temp")) Directory.CreateDirectory(".\\temp");

            var t = new FolderShareTask();
            t.PointingTo = @".\temp";
            t.ShareName = "dk_test";
            t.Server = Environment.MachineName;
            
            t.Execute();
        }