Created
August 24, 2016 20:49
-
-
Save abacaj/07d08df26159f43e1d57677aafa0ff45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Enter base directory:"); | |
var basePath = Console.ReadLine(); | |
Console.WriteLine("Enter destination directory (this will be created for you, make sure it doesn't exist):"); | |
var destination = Console.ReadLine(); | |
var directories = System.IO.Directory.EnumerateDirectories(basePath); | |
foreach (var directory in directories) | |
{ | |
System.IO.Directory.Move(directory, destination); | |
} | |
if (Console.ReadKey().Key == ConsoleKey.Spacebar) | |
{ | |
System.Environment.Exit(0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment