From: Alex Sweps Date: 2012-01-22T07:04:16+09:00 Subject: Re: Name directory with a variable Hello All What i have is: FileUtils.makedirs ("Backup\\test\\#{@yr}\\#{@yr}#{@mont}") That successfully makes the directory: Backup\test\2012\201201 Then I have some code that sorts all the files in the current directory and puts them into an array called test_files. All working so far. Next is: FileUtils.mv test_files, "Backup\\test\\#{@yr}\\#{@yr}#{@mont}" What happens is it moves the contents of the array into: Backup\test\ This leaves an empty folder called 2012 and 201201. I want the files to go into \Backup\test\2012\201201 I hope this makes more sense :) Kind Regards -- Posted via http://www.ruby-forum.com/.