home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!psinntp!openwx!mikel
- From: mikel@networx.com (Mike Lempriere)
- Subject: Re: How do I flush disk buffer?
- Message-ID: <1992Dec9.192645.10043@networx.com>
- Sender: usenet@networx.com (Usenet News Account)
- Organization: NetWorx
- X-Newsreader: TIN [version 1.1 PL6]
- References: <19921203.193525.815@almaden.ibm.com>
- Date: Wed, 9 Dec 1992 19:26:45 GMT
- Lines: 17
-
- BJ Hargrave (fattire@vnet.ibm.com) wrote:
- : In <1fld47INN8fo@hpscit.sc.hp.com> Bruce Kitchin writes:
- : >Mike Lempriere (mikel@networx.com) wrote:
- : >: What I really want is simply to tell the dang system to flush the cache
- : >: to disk for this one file every now and then. I'd like to just start
- : >: a seperate timer thread that just does a flush call every 15 minutes or
- : >: so.
- : >:
- :
- : Just do a DosResetBuffer(DosBufReset for 16bit) on the file
- : handle in question. This will update the dir entry as well as flush out
- : the file data. Use with DosOpen file handles.
- : -----------------------------------------------------------------------
- : BJ Hargrave Internet: fattire@vnet.ibm.com
- : Boca Raton, FL IBMIPNet: bjhar@bjhar.bocaraton.ibm.com
-
- I knew there had to be an easy way! Thanks a million!
-