From: Arihan Sinha Date: 2010-10-22T18:55:58+09:00 Subject: Re: How to delete the browser cache through ruby Charles Calvert wrote in post #956120: > On Tue, 19 Oct 2010 14:33:08 -0500, Arihan Sinha > wrote in > <2a812ccabfdd2779f7fd9b5b9874a7bc@ruby-forum.com>: > >>>> if @browser_name.to_s =~ /IE/ >>> a look at the Win32API functions that you can use for this: >>> . >>> >>> You can access these functions in Ruby using the Win32API library or >>> the dl/win32 library, both of which are part of the Ruby stdlib. >> >>it seeems the whole delete_cache.rb is mentioned in this thread ( the >>details code in the previous post) but its very confusing which method >>need to call. So if you can highlight anything w.r.t that then it would >>be great. > > You should look at the method main starting on line 122. That's the > loop that you'll need to execute. > > BTW, some of the method names (e.g. get_first_info) leave something to > be desired. If you're going to use this code, even just as an > example, I'd rename those methods to something more descriptive. Hi Charles, I did in a different way. I need to call that in my script so that when I call, the complete del_cache.rb should run. So I used the below and its working fine. require 'rake' sh %{ruby lib/del_cache.rb} -- Posted via http://www.ruby-forum.com/.