Hi!

Thanks for quick reply.

But im not sure im following your statement.

I did as you have done.

$files = ['path1/','path2/','path3/']

$old_home = 'Old_Home'
$sName = 'S_Name'

$files.each do |element|

  puts "#{$old_home}/#{$sName}", "#{Dir.pwd}/#{element}"

end

Old_Home/S_Name C:/path1/
Old_Home/S_Name C:/path2/
Old_Home/S_Name C:/path3/

please explain in depth

-- 
Posted via http://www.ruby-forum.com/.