Windowless process child

D

Darmac

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
 
B

Ben Voigt

(top-posting, because sometimes OE doesn't quote properly)
Have you tried setting the console app to start minimized instead of hidden?


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
 
D

Darmac

(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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top