static void Main(string[] args) { Console.WriteLine("Checking for target/destination files"); checkFilesClass CheckFiles = new checkFilesClass(); CheckFiles.status(); Console.WriteLine("\n\nCreating Missing Files,\n Status:"); createFiles.makeFiles(CheckFiles); CheckFiles.status(); String[] targets = File.ReadAllLines("targetFile.txt"); String[] destination = File.ReadAllLines("destinationFile.txt"); Console.WriteLine("--Targets--"); foreach (string i in targets) { Console.WriteLine(i); } Console.WriteLine("--Destinations--"); foreach (string i in destination) { Console.WriteLine(i); } copyClass BackupFiles = new copyClass(targets, destination); BackupFiles.runCopying(); Console.ReadKey(); }
static void Main(string[] args) { Console.WriteLine("Checking for target/destination files"); checkFilesClass CheckFiles = new checkFilesClass(); CheckFiles.status(); Console.WriteLine("\n\nCreating Missing Files,\n Status:"); createFiles.makeFiles(CheckFiles); CheckFiles.status(); String[] targets = File.ReadAllLines("targetFile.txt"); String[] destination = File.ReadAllLines("destinationFile.txt"); Console.WriteLine("--Targets--"); foreach (string i in targets) { Console.WriteLine(i); } Console.WriteLine("--Destinations--"); foreach (string i in destination) { Console.WriteLine(i); } copyClass BackupFiles = new copyClass(targets,destination); BackupFiles.runCopying(); Console.ReadKey(); }
public static void makeFiles(checkFilesClass checker) { Dictionary<String, Boolean> status = checker.getStatus(); createMissingFiles(status); }