From: Logan Capaldo Date: 2006-05-02T12:27:06+09:00 Subject: Re: Just need a clue On May 1, 2006, at 11:22 PM, Alan wrote: > Hi, > > I want to replace some DOS batch scripts with Ruby scripts. > > Could you give me a clue how can I execute a .EXE file within Ruby > script and also how can I check the errorlevel? > > Any help would be appreciated, > Alan > > > -- > Posted via http://www.ruby-forum.com/. > system("some.exe") puts $? # will contain the exit code