Process.start 任务栏不显示启动的进程的窗口

2024-12-26 06:46:34
推荐回答(1个)
回答1:

ProcessStartInfo ps = new ProcessStartInfo(this.ServiceFullFilePath);
ps.UseShellExecute = false;
ps.CreateNoWindow = true;

ps.WindowStyle = ProcessWindowStyle.Hidden;

Process.Start(ps);