If i call another process to run, how to run as background.?
Thank you. 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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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)...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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: 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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |