From: "Morris, Chris" Date: 2002-03-13T07:05:54+09:00 Subject: RE: Deleting read only files on Windows > What *should* it do ... ? Dunno. The OS doesn't allow > deletion of read only > files without a switch: > > ... Some sort of switch then would be nice, perhaps. Thoughts? Here's what I came up with. I have a clutilwin.rb that I started to collect windows specific routines. It's been fleshed out this afternoon with some File modifications to handle deletion. The whole file is here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/scrapware/scrapwar e/clutil/ruby/clutilwin.rb?rev=1.2 Browse here for a unit testing file as well: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/scrapware/scrapware/clutil/ru by/ Here's the pertinent guts: # BSD License # see http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/scrapware/scrapwar e/clutil/ruby/clutilwin.rb?rev=1.2 # for full details class ClUtilWinErr < Exception end class File class <