Processes - starting hidden and controlling them

Cheetah

Well-known member
Joined
Oct 12, 2006
Messages
232
Programming Experience
Beginner
Hi there,

Is it possible without the use of commandline arguments (as i don't think there is a hidden argument for this application) to make an application to start hidden?

Also is it possible, that if the application popups with any "message boxes" that it automatically presses the "ok button" or doesn't show them at all. The reason i ask, is that the application in question would usually close automatically if it wasn't for the messagebox saying the process has finished. I could probably write some logic to check the total cpu time and when its the same for a long period of time kill the program, but this is a very "dirty" way of doing it imo.

Doubt the answer is yes to either questions - but asked to be sure. :)

Thanks.
 
Last edited:
This is the code i am currently using to no avail:

VB.NET:
prc.StartInfo.CreateNoWindow = true;
prc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
prc.StartInfo.UseShellExecute = true;
prc.Start();

It still creates a window....I'm guessing i am using these methods incorrectly?

prc is the Process object.
 
Back
Top