Process.StartInfo

A

Alan T

I use
Process.StartInfo to configure the process:

Process myProcess = new Process();

myProcess.StartInfo.FileName = aProg;

myProcess.StartInfo.Arguments = aArgument;

myProcess.StartInfo.CreateNoWindow = true;

myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;


myProcess.Start();

I notices during the myProcess is processing, there is icon on the task bar
and it is gone when the process is finished.
This make me a problem as I may have 100 processes to process so there will
be 100 times the icon appears on the task bar when one is finished and the
next is starting.

How do I make it does not appear on the task bar ?
 
M

Marc Gravell

For simple apps (e.g. console) that seems to be enough; what are you
calling (what type of app)? If the app is (via a form or whatever)
doing this itself, you may struggle, short of capturing the handle and
doing some PInvoke. Not nice. You could also try disabling
UseShellExecute, but not sure how much this would help.

Marc
 
A

Alan T

Hi,

On my main form, I start that process by calling a third party executable
(eg. doctotxt.exe) to convert a Word file into text file.
I have 100 Word files to convert.
During the file conversion, the task bar has an icon/program displaying the
name of the executabl, ie doctotxt.exe, flashing it when it starts,
finished.
So if I have 100 files to convert, I need to call the process 100 times.
The task bar will display the icon with text "doctotxt.exe', disappear, and
re-appear again, 100 times.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top