From: Charles Roper Date: 2010-11-26T22:20:03+09:00 Subject: Re: system() or process.create? On 25 November 2010 09:45, Phillip Gawlowski wrote: > 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. ;) Yes, I'd definitely go with that. Charles