From: Phillip Gawlowski Date: 2010-11-25T18:45:10+09:00 Subject: Re: system() or process.create? On Thu, Nov 25, 2010 at 3:13 AM, Fengfeng Li wrote: > > Thanks for your help, both 'cmd.exe /c del *.zip' and FileUtils.rm > Dir.glob('*.zip') can solve my problem^^ Personally, I'd go with FileUtils.rm( Dir.glob('*.zip') ), just because it is more portable, and doesn't incur the cost (negligible, but still :P) of spinning off a new process. Additionally, I have to deal only with Ruby's idiosyncrasies. No need to pile cmd.exe's baggage on top of that. ;) -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.