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); }
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(); }
static OutputManager() { DirFileHelper.CreateDirectory(outputsPath); }