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:
- Netscape Communicator is running
- 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
File Created: 1999:04:15:16:54:08
Last Updated: 1999:04:15:16:54:08