diff --git a/SuperCAL/Classes/Wipe.cs b/SuperCAL/Classes/Wipe.cs index ba0cb2c..40b4b5f 100644 --- a/SuperCAL/Classes/Wipe.cs +++ b/SuperCAL/Classes/Wipe.cs @@ -83,7 +83,16 @@ public static bool DeleteDirectory(string path) catch(UnauthorizedAccessException) { Logger.Error(file + ": Failed to delete: Access Denied! (The file may be open or in use)"); - return false; + Logger.Warning("Attempting deletion method #2"); + Misc.RunCMD("del " + file); + if(File.Exists(file)) + { + Logger.Error(file + ": Failed to delete using method #2.\n\nTry manually deleting the file using CMD."); + return false; + } else + { + Logger.Good(file + ": Deleted using method #2!"); + } } catch (Exception e) { diff --git a/SuperCAL/Main.Designer.cs b/SuperCAL/Main.Designer.cs index 4b96402..b839853 100644 --- a/SuperCAL/Main.Designer.cs +++ b/SuperCAL/Main.Designer.cs @@ -124,7 +124,7 @@ private void InitializeComponent() this.Table.Controls.Add(this.StopStartCAL, 2, 0); this.Table.Controls.Add(this.ReDownloadCAL, 1, 0); this.Table.Dock = System.Windows.Forms.DockStyle.Top; - this.Table.Location = new System.Drawing.Point(0, 0); + this.Table.Location = new System.Drawing.Point(0, 24); this.Table.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3); this.Table.Name = "Table"; this.Table.RowCount = 1; @@ -328,14 +328,14 @@ private void InitializeComponent() // JoinDomainButton // this.JoinDomainButton.Name = "JoinDomainButton"; - this.JoinDomainButton.Size = new System.Drawing.Size(167, 22); + this.JoinDomainButton.Size = new System.Drawing.Size(180, 22); this.JoinDomainButton.Text = "Join Domain..."; this.JoinDomainButton.Click += new System.EventHandler(this.JoinDomainButton_Click); // // JoinWorkButton // this.JoinWorkButton.Name = "JoinWorkButton"; - this.JoinWorkButton.Size = new System.Drawing.Size(167, 22); + this.JoinWorkButton.Size = new System.Drawing.Size(180, 22); this.JoinWorkButton.Text = "Join Workgroup..."; this.JoinWorkButton.Click += new System.EventHandler(this.JoinWorkButton_Click); //