From: Simon Staton Date: 2009-08-14T18:46:56+09:00 Subject: Re: newbie question making a folder with ruby Fleck Jean-Julien wrote: >> 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, wow thats worked fantasticly THANKS! -- Posted via http://www.ruby-forum.com/.