예제 #1
0
파일: Engine.cs 프로젝트: willman0982/code
 private static void CloseUNC(ref UNC unc)
 {
     if (unc != null)
     {
         unc.Close();
         unc.Dispose();
         unc = null;
     }
 }
예제 #2
0
파일: Engine.cs 프로젝트: willman0982/code
 private static bool OpenUNC(RootPath rootPath, out UNC unc)
 {
     unc = null;
     if (rootPath.IsUNCPath && !string.IsNullOrEmpty(rootPath.UserName))
     {
         unc = new UNC(rootPath.Path, rootPath.Domain, rootPath.UserNameWithoutDomain, rootPath.Password);
         return(unc.Open());
     }
     return(true);
 }
예제 #3
0
파일: idir.cs 프로젝트: BradThompson/Util
        static bool TryPrintConnection(string drive, string path)
        {
            string UNCPath;

            if (drive.ToUpper() == path.Substring(0, 3).ToUpper())
            {
                if (!UNC.TryGetUNCPath(drive, out UNCPath))
                {
                    return(false);
                }
                Console.WriteLine("{0}{1}", UNCPath, path.Substring(3));
                return(true);
            }
            return(false);
        }
예제 #4
0
 public void LoginC()
 {
     UNC.SendKeys("admin");
     PAC.SendKeys("admin");
     LOGC.Click();
 }