本文介绍了开始隐藏进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试在表单应用程序的后台启动一个隐藏进程,但是无论如何它始终显示可见.我究竟做错了什么? :(

Hi,

I am trying to start an hidden process in the background of my form application but it always shows visible no matter what. What am i doing wrong? :(

Process SomeProgram = new Process();
SomeProgram.StartInfo.FileName = @"C:\\program.exe";
SomeProgram.StartInfo.Arguments = "some args here";
SomeProgram.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
SomeProgram.StartInfo.UseShellExecute = false;
SomeProgram.StartInfo.RedirectStandardOutput = true;
SomeProgram.StartInfo.CreateNoWindow = true;
SomeProgram.Start();

推荐答案



这篇关于开始隐藏进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 01:37