Seregamil
Мастер
Простая консольная программа, удаляющая из папки с GTA файлы s0beit'a и CLEO
Исходный код
Использование - засунуть в папку с GTA и запустить
Автор: Seregamil
Исходный код
PHP:
using System;
using System.IO;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
string[] detect_files = { "CLEO.asi", "mod_sa.ini", "d3d9.dll" };
string[] detect_dir = { "CLEO" };
if ((File.Exists("samp.exe")) && (File.Exists("gta_sa.exe")))
{
for (int i = 0; i != detect_files.Length; i++) if (File.Exists(detect_files[i])) {
File.Delete(detect_files[i]);
Console.WriteLine("File "+detect_files[i]+" deleted");
}
for (int i = 0; i != detect_dir.Length; i++) if (Directory.Exists(detect_dir[i])) {
Directory.Delete(detect_dir[i], true);
Console.WriteLine("Folder "+detect_dir[i]+" is deleted");
}
}
}
}
}
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Автор: Seregamil
Последнее редактирование:
