From: Greg Halsey Date: 2009-08-28T22:46:41+09:00 Subject: Re: How to delete a file in Win XP > How to delete a file in Win XP ? > #another method: yourtarget="C:/Documents and Settings/greg/My Documents/targetfile.pdf" require 'win32ole' WIN32OLE.new("Scripting.FileSystemObject").deleteFile(yourtarget) # I didn't address file lock. -- Posted via http://www.ruby-forum.com/.