I'm reposting this as I haven't found the answer that I'm looking for, and
there's no answer from microsoft yet, and I've been guaranteed 2 days
response time....
Hi,
I'm trying to purge a specific file data cached by the OS...
How do I accomplish that? I've tried to use various techniques (incl setting
the flag FILE_NO_INTERMEDIATE_BUFFERING) but the data is still cached. I'm
trying to force the system to re-read data in a dvdrom.
Apparently, the DVD rom won't be accessed if part of the data (few hundred
megs) are cached in the file system. I want this to be accssed each time -
or when I want it to.
i'm assuming that the file won't be memory-mapped into the memory.
I found that mounting and dismounting the drive would purge the cache, but
this
is a fairly big operation... wondering if there's a better way to do it.
This is evident if you try to copy some large files, cancelling it halfway
and do a re-copy would take shorter time as the reading is done via cache...
but if you disable the dvdrom, and re-enable it, the copy time would take as
long as the first time.
thanks in advance.
Kenny