From: Sean O'Halpin Date: 2005-10-26T06:19:13+09:00 Subject: Re: Windows Move/Dir with wildcards ? On 10/25/05, Peter Fitzgibbons wrote: > Hello, > I'm trying to get this to work on WinXP/Win2003 : > > x = "./xmloutput/cancellations/*" > `dir #{x} ` > > `move #{x} "./otherdir" ` > You're passing Ruby style filenames (i.e. with "/") to the DOS command shell (which expects "\"). A pure Ruby solution would be: require 'fileutils' FileUtils.move Dir["./xmloutput/cancellations/*"], "./otherdir" Regards, Sean