From: Bosko Ivanisevic Date: 2010-02-10T05:05:10+09:00 Subject: Re: Need Code to Create Directory Picking Dialog Box On Feb 9, 6:19 pm, Alex DeCaria wrote: > I have a Ruby program and want to be able to pick a directory using a > dialog box.  Does anyone have a quick, easy piece of code that will > bring up a dialog box to pick a directory?  That's the only GUI part of > the program I need.  I don't want to learn a whole GUI programming > library just to create a directory picking dialog box, so if someone has > some code I can just plug into my existing Ruby program I would greatly > appreciate it. > > Thanks! > > Alex DeCaria > -- > Posted viahttp://www.ruby-forum.com/. It really depends on which OS you are working and which library you want to use. You can use ffi gem to open such dialog directly from shared library or you can use some Ruby GUI bindings like RubyTk, WxRuby or QtRuby. So there is no general solution and depends much of your environment and your decision which library you will use. Regards, Bosko Ivanisevic