From: "Rebhan, Gilbert" Date: 2007-02-14T00:19:11+09:00 Subject: Re: Problem with File.mv OK, after a test on a local drive = 1. seems to be a problem with LAN path Y:/ is \\LAN\HOME\.... how to get around that ?? 2. the method def recurse(src, dst) #Dir.mkdir(dst) # commented out as dstdir already exists Dir.foreach(src) do |e| # Don't bother with . and .. next if [".",".."].include? e fullname = src + "/" + e newname = fullname.sub(Regexp.new(Regexp.escape(src)),dst) if FileTest::directory?(fullname) recurse(fullname,newname) FileUtils.cp(fullname, newname, :verbose => true) else puts "??? : #{fullname}" end end end works now, but not as i need it to = i want all files from T:/rubytest/deploy/E023889/INCLIB move to the folder T:/Foobar/INCLIB but with the method above i get = T:/Foobar/INCLIB/INCLIB how to change that ? Regards, Gilbert