473,507 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process.start

If i call another process to run, how to run as background.?
Thank you.
Nov 16 '05 #1
6 2914
HK guy <HK***@discussions.microsoft.com> wrote:
If i call another process to run, how to run as background.?


What exactly do you mean by "as background" here? The process is
started as an independent process - unless it's waiting for input (or
its output buffers are blocked) it will run independently of the
process which started it.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Since I use this to process.start to call a dos program, but it will pop up a cmd on the screen. so i don't want the screen pop up. any method?
Thx

"Jon Skeet [C# MVP]" wrote:
HK guy <HK***@discussions.microsoft.com> wrote:
If i call another process to run, how to run as background.?


What exactly do you mean by "as background" here? The process is
started as an independent process - unless it's waiting for input (or
its output buffers are blocked) it will run independently of the
process which started it.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #3
HK guy <HK***@discussions.microsoft.com> wrote:
Since I use this to process.start to call a dos program, but it will
pop up a cmd on the screen. so i don't want the screen pop up. any
method?


I don't know of any way to stop that - if it's a DOS program, it just
comes with a console, as far as I'm aware.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4
You can run a console app without a window on the screen by setting the
ProcessStartInfo.CreateNoWindow field to a value of true. You may have to
set the field UseShellExecute to false but I'm not sure about that.

"HK guy" <HK***@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Since I use this to process.start to call a dos program, but it will pop up a cmd on the screen. so i don't want the screen pop up. any method? Thx

"Jon Skeet [C# MVP]" wrote:
HK guy <HK***@discussions.microsoft.com> wrote:
If i call another process to run, how to run as background.?


What exactly do you mean by "as background" here? The process is
started as an independent process - unless it's waiting for input (or
its output buffers are blocked) it will run independently of the
process which started it.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #5
David Levine <no****************@wi.rr.com> wrote:
You can run a console app without a window on the screen by setting the
ProcessStartInfo.CreateNoWindow field to a value of true. You may have to
set the field UseShellExecute to false but I'm not sure about that.


Ooh, nice catch - hadn't seen that one :(

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #6
DC
You might also want to check process.StartInfo.RedirectStandardOutput,
so you can read console output into string. Similar goes for input. I
use this technique for running PGP 2.6.3i.

LP,
Dejan

David Levine wrote:
You can run a console app without a window on the screen by setting the
ProcessStartInfo.CreateNoWindow field to a value of true. You may have to
set the field UseShellExecute to false but I'm not sure about that.

"HK guy" <HK***@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Since I use this to process.start to call a dos program, but it will pop


up a cmd on the screen. so i don't want the screen pop up. any method?
Thx

"Jon Skeet [C# MVP]" wrote:

HK guy <HK***@discussions.microsoft.com> wrote:

If i call another process to run, how to run as background.?

What exactly do you mean by "as background" here? The process is
started as an independent process - unless it's waiting for input (or
its output buffers are blocked) it will run independently of the
process which started it.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Nov 16 '05 #7

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

Similar topics

12
2867
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
18
4856
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
6
6829
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
4
14182
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...
10
14399
by: Sorin Dolha [MCSD .NET] | last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
12
2347
by: Raymond Lewallen | last post by:
How to wait for a process to stop completion is my goal. Obviously, the looping while waiting for the HasExited property is not a solution.. but thats the best I can come up off the top of my...
0
2229
by: henning.friese | last post by:
Hello NG, I'm need to write some code which creates tiff files from various document types (doc, pdf, xls). I want to do this by ShellExecuting (via System.Diagnostics.Process) the doc-files...
3
4262
by: BuddyWork | last post by:
Hello, Could someone please explain why the Socket.Send is slow to send to the same process it sending from. Eg. Process1 calls Socket.Send which sends to the same IP address and port, the...
0
3138
by: Buddy Home | last post by:
There is two examples of code. Example 1. Send and Receive within the same process. Put this code in a console app called SendAndReceive and run the code. using System; using...
0
1716
by: =?Utf-8?B?Um9i?= | last post by:
I've a requirement to monitor when certain applications are started. I'm using WMI called from VS Stusio 2005 in VB to trap Excel and Word starting. I've written the following console application...
0
7223
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
7114
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...
1
7034
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...
0
7488
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...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
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 ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.