473,585 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process.StartIn fo

I use
Process.StartIn fo to configure the process:

Process myProcess = new Process();

myProcess.Start Info.FileName = aProg;

myProcess.Start Info.Arguments = aArgument;

myProcess.Start Info.CreateNoWi ndow = true;

myProcess.Start Info.WindowStyl e = ProcessWindowSt yle.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 3582
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.e xe', disappear, and
re-appear again, 100 times.

"Marc Gravell" <ma**********@g mail.comwrote in message
news:11******** **************@ k70g2000cwa.goo glegroups.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
10566
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"); startInfo.WindowStyle = ProcessWindowStyle.Minimized; startInfo.FileName = filename; startInfo.Verb = "Print"; Process.Start(startInfo);
5
3657
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 I cant make it work, it always stalls when I try to read the output: /// code 1 Process ftpProcess = new Process();
4
14192
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 process = new Process(); process.StartInfo.FileName = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE";
4
5936
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(); p10.StartInfo.FileName = "cmd.exe"; p10.StartInfo.UseShellExecute = false; // p.StartInfo.CreateNoWindow = true; p10.StartInfo.RedirectStandardInput = true;
7
3346
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 - When the first process is finished, it runs another Exe process (HHC.exe) The code is below:
2
2472
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 was supposed to do. When I create my process like this it doesn't redirect the standard output: Process prcs = new Process();...
2
6433
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: Application popup: <COMMAND TOOL> - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the...
1
3761
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 capture the results of the compile and display them in a RichTextBox. The problem I'm having is that when I intentionally introduce an error in the C...
1
6674
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 = "WINWORD.EXE" Dim SPrinter = \\PrinterPath\PrinterName 'Name Of printer Dim sReport = "C:\WordDoc1.doc" 'Complete name/path of PDF file
4
3986
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 as desired. Does anyone know if there is a known issue with hiding a process window when you run it as a different user? Do you have any...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.