From: Fleck Jean-Julien Date: 2009-08-14T18:38:59+09:00 Subject: Re: newbie question making a folder with ruby > where do I put the dir = "c:/temp"? Just here: dir = "c:/temp" ## <--- here is where you define variable 'dir' if File.exist?(dir) ## <--- and here is where you begin to use it puts "#{dir} already exists !" else Dir.mkdir(dir) end Cheers, -- JJ Fleck PCSI1 Lycée Kleber