From: Alex DeCaria Date: 2010-02-10T05:12:23+09:00 Subject: Re: Need Code to Create Directory Picking Dialog Box I figured out how to do it easily using FXRuby. The code snippet below worked just fine and did exactly what I wanted. Not sure it's the most efficient way, but it worked. # ******** Directory Dialog Box ******************* require 'fox16' include Fox # Use GUI to select Session Directory app = FXApp.new dialog = FXDirDialog.new(app, "Select Session Directory") dialog.directory = prs_root_path app.create dialog.show if dialog.execute != 0 then session_directory = dialog.directory else print "\n No session selected. Program exiting.\n" exit end -- Posted via http://www.ruby-forum.com/.