The attached file works on my Windows XP/IE7 machine.  It will delete
all the temporary internet files and the cookies.  I don't remember
where I got it or who wrote it originally, but I tweaked it to get it to
work right for me.

Hope this helps,

--Mark


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of reinier
Sent: Wednesday, June 13, 2007 1:35 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] how to properly use the snippet function?

I am trying to get rid of all cookies via a function.
On this forum I found the Snippet thingy.
http://rubyforge.org/snippet/detail.php?type=snippet&id=26
So I included that code in my script and trying to use it, but I can't
figure out how.

this is the code:
[code]
DeleteUrlCacheEntry = Win32API.new("wininet", "DeleteUrlCacheEntry",
['P'], 'V') [/code]

So what function should be called to delete all the cookies?
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Attachment: CookieKiller.rb
Description: CookieKiller.rb

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to