public override void LocateFile() { try { CleanHelper.FindFile(Location); } catch { } }
public override void LocateFile() { try { CleanHelper.FindFile(SanitizePath(Location)); } catch { } }
public override void LocateKey() { try { CleanHelper.FindKeyInRegistry(Key.ToString()); } catch { } //finally { Key.Close(); } }
private bool FixRegistry() { bool changeDetected = false; try { if (wfirewall.Checked) { CleanHelper.EnableFirewall(); changeDetected = true; } if (cmdp.Checked) { CleanHelper.EnableCommandPrompt(); changeDetected = true; } if (controlp.Checked) { CleanHelper.EnableControlPanel(); changeDetected = true; } if (foldero.Checked) { CleanHelper.EnableFolderOptions(); changeDetected = true; } if (rundialog.Checked) { CleanHelper.EnableRunDialog(); changeDetected = true; } if (rightmenu.Checked) { CleanHelper.EnableContextMenu(); changeDetected = true; } if (taskmgr.Checked) { CleanHelper.EnableTaskManager(); changeDetected = true; } if (regeditor.Checked) { CleanHelper.EnableRegistryEditor(); changeDetected = true; } } catch { changeDetected = false; } return(changeDetected); }
private void GetStartupItems() { items = CleanHelper.GetStartupItems(); listStartupItems.Items.Clear(); for (int i = 0; i < items.Count; i++) { ListViewItem list = new ListViewItem(items[i].Name); list.SubItems.Add(items[i].Location); list.SubItems.Add(items[i].ToString()); listStartupItems.Items.Add(list); } }
internal static void DisableTelemetryRunner() { try { if (File.Exists(CompatTelRunnerFile)) { CleanHelper.RunCommand(string.Format("takeown /F {0}", CompatTelRunnerFile)); CleanHelper.RunCommand(string.Format("icacls \"{0}\" /grant administrators:F", CompatTelRunnerFile)); FileSystem.RenameFile(CompatTelRunnerFile, CompatTelRunnerFileOff); } } catch { } }
private void CleanPC() { try { if (tempfiles.Checked) { CleanHelper.CleanTemp(); } if (utorrentcache.Checked) { CleanHelper.CleanUTorrent(); } if (ftpservers.Checked) { CleanHelper.CleanFileZilla(); } if (bsoddumps.Checked) { CleanHelper.CleanMiniDumps(); } if (prefetchcache.Checked) { CleanHelper.CleanPrefetch(); } if (mediaplayercache.Checked) { CleanHelper.CleanMediaPlayersCache(); } if (logfiles.Checked) { CleanHelper.CleanLogs(); } if (emptytrash.Checked) { CleanHelper.EmptyRecycleBin(); } if (errorreports.Checked) { CleanHelper.CleanErrorReports(); } } catch { } finally { CleanAnimation(false); } }
private void button33_Click(object sender, EventArgs e) { bool flag = FixRegistry(); panel2.Enabled = false; button33.Enabled = false; if (flag) { if (restartexplorer.Checked) { CleanHelper.RestartExplorer(); } panel2.Enabled = true; button33.Enabled = true; } }
internal static void Clean() { CleanHelper.EmptyFolder(CoreFolder); }
internal static void LocateHosts() { CleanHelper.FindFile(HostsFile); }