[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Deleting Cookies

Venkat Kumar

3/23/2009 2:02:00 PM

Hi All,

My requirement is deleting cookies and cache.

I tried with the following code

CODE:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Dir.chdir("C:\\Documents and Settings\\venkat\\Local Settings\\Temporary
Internet Files\\")
target_dir_files = Dir.glob("*");

puts("###################")
puts target_dir_files
puts("###################")
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

and then to delete with File.Delete(filename)

But I am getting output as

Output
###################
AntiPhishing
Content.IE5
Content.MSO
desktop.ini
OLK10FB
###################

I need to delete the cookies and cache. Is my way correct? Is there any
other best method to do this kindly throw some light on it

Thanks,
Venkat
--
Posted via http://www.ruby-....