From: Roger Pack Date: 2009-12-17T09:01:46+09:00 Subject: Re: Cannot obtain child process exit code on Windows > C:\>ruby test.rb > pid 5952 exit 0 > 0 > > Seems like in Windows, Ruby can never see the number 29 anyway. I bet ruby is giving you the exit code of running that .bat file under a different instance of command. Maybe ping core it looks suspicious. -r -- Posted via http://www.ruby-forum.com/.