What is Process.ExitCode = 255 ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 ?
 
What does "I'm pretty sure" means? How did u tested it?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
See my answer to your other post of this same question. And don't double- or
cross-post, please. No need for 20 people to solve the exact same problem.
It's a waste of our time.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.
 
Back
Top