Darin, Thank you very much for your reply! I've tried out the test sample code and linking them to xpcom.dll But I have more questions...
Doom() seems to be (perhaps I am wrong) only marking the entry in cache as no longer valid... what I am trying to do is actually "securely" deleting the cached item... like zeroing out the file, or something like that... I've noticed some are in the cache directory <hash>d<generate> format file, but others seems to be in _CACHE_* files... Is there a way to figure out the location of a particular item on disk after I enumerate them all? (I haven't been able to find the idl call). Thanks alot! Any pointer helps. Darin Fisher <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > fltcpt wrote: > > >Seems like this is an asked question but I could find > >no answer. I want to write an external program > >(so no java script...) that can selectively > >delete certain items from netscape/mozilla's disk cache, > >how should I go about doing that? > > > >I browsed through mozilla's source of about:cache, so > >should I be making API calls to necko.dll to > >mimic that (is that possible?) or is there any otherway? > > > >Any pointer appreciated. > >_______________________________________________ > >Mozilla-netlib mailing list > >[EMAIL PROTECTED] > >http://mail.mozilla.org/listinfo/mozilla-netlib > > > > > > To "edit" the cache outside the Mozilla process itself, you need to > first make sure that Mozilla is not running. If it is not running, then > you can write a small program that uses the nsICacheService to enumerate > the cache and "doom" various entries. > > See the sample code in netwerk/test/ > > They are all small programs that just run link against xpcom.dll and > access necko interfaces. If you have questions, please let me know. > > -Darin _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib