예제 #1
0
        public static bool InitServer(string root)
        {
            Root = root;

            CaseRoot = Root + "\\Cases";
            DirFileHelper.CreateDirectory(CaseRoot);

            mAdapterTimer           = new System.Timers.Timer(5000);
            mAdapterTimer.AutoReset = true;
            mAdapterTimer.Elapsed  += new System.Timers.ElapsedEventHandler(mAdapterTimer_Elapsed);
            mAdapterTimer.Start();

            return(false);
        }
예제 #2
0
        public static void test3()
        {
            bool re = DirFileHelper.IsExistDirectory(@"//192.168.1.202/sh_erp$/ww2");

            if (re)
            {
                Console.WriteLine("在");
            }
            else
            {
                Console.WriteLine("不在");
                DirFileHelper.CreateDirectory(@"//192.168.1.202/sh_erp$/ww2");
            }
            Console.ReadKey();
        }
예제 #3
0
 static OutputManager()
 {
     DirFileHelper.CreateDirectory(outputsPath);
 }