// See https://aka.ms/new-console-template for more information using EgwAccRestarter; using System.Diagnostics; string sep = "-------------------"; Console.WriteLine(sep); Console.WriteLine("Inizio processo restart"); Console.WriteLine(sep); // forza chiusura applicazione Console.WriteLine(); ProcKiller.ForceKillByName("EgwControlCenter.App", 500); // attende Console.WriteLine("Attesa"); await Task.Delay(1000); Console.WriteLine("Riavvio processo!"); // riavvia da download scaricando eventuale update... string progDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); string procPath = "https://install.egalware.com/AppControlCenter/EgwControlCenter.App.application"; Process.Start("rundll32.exe", "dfshim.dll,ShOpenVerbApplication " + procPath); //Process.Start("https://install.egalware.com/AppControlCenter/EgwControlCenter.App.application");