473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Process.StartInfo

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 ?
Oct 10 '06 #1
2 3566
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

Oct 10 '06 #2
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.

"Marc Gravell" <ma**********@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
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

Oct 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Smith | last post by:
Hi, I am using the following code to print documents directly to the default printer ************** ProcessStartInfo startInfo = new ProcessStartInfo ("<someprogram>.exe");...
5
by: ask | last post by:
Hi NG I'm a bit new to programming c# and have a question regarding ftp by the command prompt. As far as I can see it should be possible to start a process and pipe command streams into it. But...
4
by: Yiu | last post by:
upgent help i want to start IE explorer using C# i try many code such as below: ProcessStartInfo startInfo = new ProcessStartInfo("IEXPLORE.EXE"); Process.Start(startInfo); or Process...
4
by: jam | last post by:
Dear All, I have a command process running xcopy in console, and now I want to execute the program Rsync After the files are copied...how could i do?? Process p10=new Process();...
7
by: Samantha | last post by:
Hello , I am developping a program for Win98 plateform, and I am stucking with a problem, hope you can help me. I have a program running 2 process : - One process running the Xcopy.exe -...
2
by: Brian | last post by:
I'm running a dos program via System.Diagnostics.Process. The dos program is very picky about filenames and such, and so I want to show the output to the user so they can verify it did what it...
2
by: Alexander van Doormalen | last post by:
I am trying to run an external process (command tool) within a Windows Service with the specified account. When the application launches I get a error dialog with the following message: ...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a C# application in which I start another process which produces output to stdout and stderr. In fact, that process is the uSoft VS2005 C/C++ compiler itself! I would like to...
1
by: Rick | last post by:
Can anyone tell me how to set the printer using the process class in VB.net, I've tried everything, it always goes to the default printer. My Code: Dim pathToExecutable As String =...
4
by: =?Utf-8?B?SHVleQ==?= | last post by:
I need to hide the new window started from the code below. If I run as is, the window is visible. If I comment out the code that sets a different user, domain, and password the window is hidden...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.