以不打破全屏的方式启动新的进程

   Task.Factory.StartNew(() =>
            {
                Thread.Sleep(TimeSpan.FromSeconds(20));

                string process = AppDomain.CurrentDomain.BaseDirectory + @"TargetWPF.exe";
                ProcessStartInfo info = new ProcessStartInfo(process);
                info.WindowStyle = ProcessWindowStyle.Hidden;
                info.UseShellExecute = true;
                Process.Start(info);
                Trace.WriteLine("start  " + process);
            });

如果是C++的程序启动,sw_show应该改为sw_hide.

你可能感兴趣的:(进程)