From: nobu.nokada@... Date: 2002-01-29T09:50:02+09:00 Subject: Re: howto copy files from NT box to NT servers Hi, At Tue, 29 Jan 2002 04:55:22 +0900, wrote: > "copy" is a builtin command of the CMD shell. You probably have to run a > command similar to: > cmd /c copy ... Win32API version. require 'Win32API' module Win32 CopyFile = Win32API.new('kernel32', 'CopyFile', 'PPI', 'I') def self.copy_file(src, dest, flag = 0) CopyFile.call(src, dest, flag) end end destdir = '//lpsctx07/workstationCTS\$/protdef/release_1.0.2' Dir.glob('c:/pb/workstationCTS/build/pdef_*.pbd') do |src| dest = File.join(destdir, File.basename(src)) Win32.copy_file(src, dest) end # Not sure it works or not. -- Nobu Nakada