What does mean Process.ExitCode = 255 ?

  • Thread starter Thread starter SMichal
  • Start date Start date
S

SMichal

Hi, I'm starting from my application simple bat data...test.bat.
This file (test.bat) should start another aplication app.exe.

I'm starting the test.bat from my application with Start() method of Process
class.
With proc.WaitForExit I'm waiting for end of the process and I must check
the
return code of process that I've started...this job does proc.ExitCode.

I'm alway dealing with returnCode = 255 but I'm pretty sure that the
application (which I've started) returns only this codes 0, 1 , 2, 3

So why do I get always the 255 retun code ?
 
See my answer to this question in the other newsgroup you posted it to.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.
 
And just what was that newsgroup????
--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
Back
Top