1
Fork 0

added name of drive in message box

This commit is contained in:
Jake Howard 2015-01-06 17:54:30 +00:00
parent 01c6cd4270
commit 170bf7d1ad

View file

@ -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";