diff --git a/ZipExtractor/FormMain.cs b/ZipExtractor/FormMain.cs index 6a6654bc..1d9e9be9 100644 --- a/ZipExtractor/FormMain.cs +++ b/ZipExtractor/FormMain.cs @@ -51,7 +51,7 @@ private void FormMain_Shown(object sender, EventArgs e) _backgroundWorker.DoWork += (o, eventArgs) => { - foreach (var process in Process.GetProcesses()) + foreach (var process in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(executablePath))) { try { @@ -275,4 +275,4 @@ private void FormMain_FormClosing(object sender, FormClosingEventArgs e) _logBuilder.ToString()); } } -} \ No newline at end of file +}