static void Main(string[] args) { foreach (Process T7EPreferencesProcess in Process.GetProcessesByName("T7EPreferences")) { T7EPreferencesProcess.Kill(); } foreach (Process T7EBackgroundProcess in Process.GetProcessesByName("T7EBackground")) { T7EBackgroundProcess.Kill(); } }
static public void Main(string[] args) { Common.CheckWindowsVersion(); // Check install dir Common.EnvInstalled = true; // Do file/directory checks Common.Path_ProgramFiles = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); Common.Path_AppData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "JumplistExtender"); foreach (Process T7EPreferencesProcess in Process.GetProcessesByName("T7EPreferences")) { T7EPreferencesProcess.Kill(); } foreach (Process T7EBackgroundProcess in Process.GetProcessesByName("T7EBackground")) { T7EBackgroundProcess.Kill(); } // Read the applist Application.Run(new Primary()); }