Process.Start() opens console window under W98

  • Thread starter Thread starter aaa
  • Start date Start date
A

aaa

We're running a cmdline process from our app via
Process.Start(ProcessStartInfo), setting the CreateNoWindow property=
"true". The process executes fine, and under NT and XP no window opens.
Under Windows98 a console window pops up.

Does anybody have this problem? How can I get around this? I believe the
app generates standard error output, if I redirect that will the window stop
opening?

-- kov
 
Morten said:
Hi kov,

The CreateNoWindow property sets the CREATE_NO_WINDOW flag which isn't
supported on Win95, Win98, WinME.
So I'm afraid you can't suppress it.

http://msdn.microsoft.com/library/en-us/dllproc/base/process_creation_flags.asp

Argh! So I see that the flag is not supported for 95/98/ME, but what
does the following mean: "This flag cannot be used with MS-DOS-based
applications"? Why would an MS-DOS-based application bring up a dialog.
I know that the app generated output to standard error, perhaps if I
redirect that then the window won't come up? How about setting the
ProcessWindowStyle to Hidden?

BTW, the MSDN entry for ProcessStartInfo.CreateNoWindow property says
it's supported for 98/ME upwards, how does one go about finding out the
"truth", as your above link so clearly states?

Thanks,

-- kov
 
aaa said:
We're running a cmdline process from our app via
Process.Start(ProcessStartInfo), setting the CreateNoWindow property=
"true". The process executes fine, and under NT and XP no window opens.
Under Windows98 a console window pops up.

Does anybody have this problem? How can I get around this? I believe the
app generates standard error output, if I redirect that will the window stop
opening?


Why don't you try it and tell us?
 
cody said:
Why don't you try it and tell us?

Because I don't have Win98; I heard about the problem in a roundabout
fashion, and built a new installer, sent it out to the person who told me
about it so he could get the person who told him to test it.

And now I know the answer. Thanks Cody!

-- kov
 
Back
Top