Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Reflection;
- using System.IO;
- public class SimpleFileDelete
- {
- static void Main()
- {
- string newclientgame = @"C:\\Program Files\GameforgeLive";
- string newclientgame32bit = @"C:\\Program Files (x86)\GameforgeLive";
- string oldclientgame = @"C:\\Program Files\game(DE)";
- string oldclientgame32bit = @"C:\\Program Files (x86)\game(DE)";
- if (!Directory.Exists(newclientgame))
- {
- System.IO.Directory.Delete(newclientgame, true);
- }
- else
- {
- System.Console.WriteLine("Wait..");
- }
- if (!Directory.Exists(newclientgame32bit))
- {
- System.IO.Directory.Delete(newclientgame32bit, true);
- }
- else
- {
- System.Console.WriteLine("Wait..");
- }
- if (!Directory.Exists(oldclientgame32bit))
- {
- System.IO.Directory.Delete(oldclientgame32bit, true);
- }
- else
- {
- System.Console.WriteLine("Wait..");
- }
- if (!Directory.Exists(oldclientgame))
- {
- System.IO.Directory.Delete(oldclientgame, true);
- }
- else
- {
- System.Console.WriteLine("No game directory found..");
- }
- System.IO.Directory.Delete(oldclientgame, true);
- System.Console.WriteLine("Press any key to exit.");
- System.Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement