Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Netscape and Disk Cache not getting Flushed

Keywords:  netscape disk cache	

Question:

I have written a script for Netscape Communicator which re-writes the prefs.js file which is located in the ...\netscape\users\default directory (instead of using Netscapes profile manager(we have about 6000 profiles to worry about)). Now, what I am having trouble with is when the following conditions exist:
  1. Netscape Communicator is running
  2. User trys to "login" using my script
-- The login closes Netscape if the login script receives a valid username. Once it closes netscape, the new pref file is written and Netscape is loaded.

What I am having trouble with is that Netscape likes to re-write the prefs.js file on exit. For some reason, Netscapes re-write of the prefs.js takes precedence over the login scripts rewrite of the prefs.js. I think it has something to do with the disk cache not being flushed, hence I am wondering if there is a way to flush the disk cache.

Answer:

Try putting in a TimeDelay(2) in your code. If that doesn't work, I would close down netscape (and make sure it is closed via appexist), and when it is completely gone, then update the pref file
Article ID:   W13454
Filename:   Netscape and Disk Cache not getting Flushed.txt