From 170bf7d1ad59c00f99ae641e9c8fd019181e5d4b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 6 Jan 2015 17:54:30 +0000 Subject: [PATCH] added name of drive in message box --- Saviour Backup System/compression.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Saviour Backup System/compression.cs b/Saviour Backup System/compression.cs index 96e2c38..057b7b6 100644 --- a/Saviour Backup System/compression.cs +++ b/Saviour Backup System/compression.cs @@ -14,7 +14,7 @@ namespace Saviour_Backup_System private volatile static string Gdirectory; private volatile static string GfileName; - public static void Compress(string directory, string outputFile) { + public static void Compress(string directory, string outputFile, DriveInfo drive) { GfileName = outputFile; Gdirectory = directory; //store as globals compressToZip(); if (has7Zip()) { @@ -27,7 +27,7 @@ namespace Saviour_Backup_System } else { //7z.exe interface code goes here! } - MessageBox.Show("Compression for drive" + "DRIVE NAME" + "has completed.", "Compression Completed", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show("Compression for drive '" + drive.Name + "' has completed.", "Compression Completed", MessageBoxButtons.OK, MessageBoxIcon.Information); } private static void compression7Zip() { //need to write this! string fileToCompress = Gdirectory + GfileName + ".zip";