From: Kurt Euler Date: 2003-10-08T15:11:21+09:00 Subject: How to delete read-only files with Ruby commands All- On a Windows NT system, is there a way to quickly delete directories (from within a Ruby script) that may have read-only files in them. The command I've been using is File.delete(*Dir["*.*"]) but this crashes when it hits a RO file. Similarly, is there a way to force the overwriting of a RO file? I've been using File.syscopy, but this, too, crashes when attempting to overwrite an RO file. Thanks! -Kurt Euler