Hi, I would like to obtain the exit code from a child program. But all the methods I tried were in vain. Here are two files that i used to test. C:\> type a.bat @echo off exit /b 29 C:\> type test.rb system('a.bat') puts $? puts $? >> 8 exit C:\>ruby test.rb pid 5952 exit 0 0 Seems like in Windows, Ruby can never see the number 29 anyway. Can anyone help me? Thanks in advance. -- Posted via http://www.ruby-forum.com/.