468,765 Members | 1,729 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Windowless process child

Hi, i'm new in this list so I don't know if anyone has asked
this...but...

I have a process (dos app instance) started like this:

_procStartInfo = new ProcessStartInfo();
_procStartInfo.FileName = appPath;
_procStartInfo.RedirectStandardInput = redirectStandardInput;
_procStartInfo.RedirectStandardOutput = redirectStandardOutput;
_procStartInfo.RedirectStandardError = redirectStandardError;
_procStartInfo.UseShellExecute = false;
_procStartInfo.CreateNoWindow = true;

Now, the command that I start with the previously configuration run a
child process that has a window (the child process is a firefox
instance) but the child inherits the property of CreateNoWindow of the
parent, so I see that the process is running (in the task manager) but
I can't see it.

Because the child app is launched by an application that it's not
mine, I can control the way that it start.

It's there something that I can do to run an dos app, redirect it's
output, (error and input too), and still let the application to create
process normally (so I can see them)?

Thanks in advance

Darío Macchi

May 15 '07 #1
2 2296
(top-posting, because sometimes OE doesn't quote properly)
Have you tried setting the console app to start minimized instead of hidden?
"Darmac" <da******@gmail.comwrote in message
news:11*********************@p77g2000hsh.googlegro ups.com...
Hi, i'm new in this list so I don't know if anyone has asked
this...but...

I have a process (dos app instance) started like this:

_procStartInfo = new ProcessStartInfo();
_procStartInfo.FileName = appPath;
_procStartInfo.RedirectStandardInput = redirectStandardInput;
_procStartInfo.RedirectStandardOutput = redirectStandardOutput;
_procStartInfo.RedirectStandardError = redirectStandardError;
_procStartInfo.UseShellExecute = false;
_procStartInfo.CreateNoWindow = true;

Now, the command that I start with the previously configuration run a
child process that has a window (the child process is a firefox
instance) but the child inherits the property of CreateNoWindow of the
parent, so I see that the process is running (in the task manager) but
I can't see it.

Because the child app is launched by an application that it's not
mine, I can control the way that it start.

It's there something that I can do to run an dos app, redirect it's
output, (error and input too), and still let the application to create
process normally (so I can see them)?

Thanks in advance

Darío Macchi
May 15 '07 #2
On May 15, 8:39 pm, "Ben Voigt" <r...@nospam.nospamwrote:
(top-posting, because sometimes OE doesn't quote properly)
Have you tried setting the console app to start minimized instead of hidden?
Yes, i've tried but the process started by the child process (the one
I have been redirecting it's output) still start windowless...

Any other idea?... Thx!!

May 17 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Åstrand | last post: by
11 posts views Thread by Mike M | last post: by
6 posts views Thread by benz | last post: by
3 posts views Thread by felixfix | last post: by
3 posts views Thread by Peter | last post: by
8 posts views Thread by mandydhaliwal | last post: by
9 posts views Thread by Homer J. Simpson | last post: by
1 post views Thread by ganeshp | last post: by
3 posts views Thread by mdshafi01 | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.