public override void Execute(Dispatcher service) { IFileHandler fromHandler = service.GetHandler(FromPath, true); IFileHandler toHandler = service.GetHandler(ToPath); byte[] file = fromHandler.GetFile(); string fileName = fromHandler.GetFileName(); Console.Write("Copying " + fileName); if (!toHandler.SaveFile(fileName, file, out string message)) { Console.ForegroundColor = ConsoleColor.Red; Console.Write("\tFailed : " + message); Console.ForegroundColor = ConsoleColor.Gray; } else { Console.ForegroundColor = ConsoleColor.DarkGreen; Console.Write("\tSuccess"); Console.ForegroundColor = ConsoleColor.Gray; } Console.WriteLine(); }