开始隐藏进程 [英] Start hidden process

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

问题描述



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

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();

推荐答案

好,这是您可以使用的另一种方法:

http://voidnish.wordpress.com/2004/08 /09/running-your-apps-on-a-hidden-desktop/ [
Ok, here''s an alternate technique you can use:

http://voidnish.wordpress.com/2004/08/09/running-your-apps-on-a-hidden-desktop/[^]

The idea is to start the app in a separate desktop, so whether it''s visible or not does not matter.


程序很可能会忽略可见性标志,并且始终使自己可见.
It''s likely that the program ignores the visibility flags and always makes itself visible.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆