Markus n/a wrote in post #1090973:
> Under OSX my version worked too - but not under windows.

I tried yours under OSX (10.7.5) and it didn't work, and I can't see how 
it possibly could - unless you are using a version of ruby with a 
radically different version of the system() command than mine.

I tried both these rubies:

(system)
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]

(homebrew)
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin11.4.2]

-- 
Posted via http://www.ruby-forum.com/.