Чистка Логов wf

1xbet 1xbet лучшие приватные читы
Сообщения
262
Реакции
212
Если кнш надо будет код на чистку логов то вот:

Код:
SystemSounds.Asterisk.Play();
            string userName = Environment.UserName;
            string path = @"C:\Users\" + userName + @"\Saved Games\My Games\Warface";
            object obj2 = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Warface", "InstallLocation", "");
            string str2 = ((string)obj2) + @"\Game.log";
            string str3 = ((string)obj2) + @"\LogBackups";
            string[] strArray = Directory.GetFiles(path, "user_*", SearchOption.AllDirectories);
            string[] strArray2 = Directory.GetFiles(path, "*.dds", SearchOption.AllDirectories);
            Чистка кеша
            SystemSounds.Asterisk.Play();
            if (System.IO.Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\ModelsCache"))
            {
                Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\ModelsCache", true);
            }
            if (System.IO.Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\HeadsCache"))
            {
                Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\HeadsCache", true);
            }
            if (System.IO.Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\Profiles"))
            {
                Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\Profiles", true);
            }
            if (System.IO.Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\QueryCache"))
            {
                Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\QueryCache", true);
            }
            if (System.IO.Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\Shaders"))
            {
                Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace\\Shaders", true);
            }

            string DirCFG = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace";
            string DelCFG = @"user_*.cfg";
            string[] FilesCFG = Directory.GetFiles(DirCFG, DelCFG);
            foreach (string Files in FilesCFG)
            {
                File.Delete(Files);
            }

            string DirXML = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Saved Games\\My Games\\WarFace";
            string DelXML = @"*.xml";
            string[] FilesXML = Directory.GetFiles(DirXML, DelXML);
            foreach (string Files in FilesXML)
            {
                File.Delete(Files);
            }
 

tm-top

Premium
Сообщения
583
Реакции
219
Skype
supamidaaa
kaspersky keys
Верх