From: "Björn Andersson" Date: 2008-07-14T17:29:21+09:00 Subject: Re: Connecting to a Windows share from a Windows computer I had not tested wether using the UNC path would work before but with File.copy it didn't. So I think the easiest would be to mount the shares using the windows command "net use" and then copy to the drives. For copying an entire directory look at the File class and also Dir to iterate over and copy the files in the directory. /Björn On Mon, Jul 14, 2008 at 7:31 AM, Kory Woods wrote: > Björn Andersson wrote: >> Hi! >> >> Have you tried to just copy it using the normal UNC path? >> \\server1\mountpoint\otherfile -> \\server2\mountpoint\yourfile.txt >> If you need to authenticate to the servers use the "net use" command >> and mount the network shares as local drives and unmount them when the >> copy is done. >> >> Not really a ruby specific answer but maybe something. :) >> >> /Bj�rn > > Thanks very much for the reply, I'll give the first part a go, but have > a question: can it work with directories (\\server1\mountpoint\* -> > \\server2\infodate\ as well as files, and what is the method call for > which I'd be looking? > > I'll definitely try/look into this deeper, though. Thanks a lot Björn! > -- > Posted via http://www.ruby-forum.com/. > > -- "Beauty is more important in computing than anywhere else in technology because software is so complicated. Beauty is the ultimate defense against complexity." -- David Gelernter, Machine Beauty: Elegance and the Heart of Technology