home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 6936 next >
Encoding:
Text File  |  1992-12-11  |  1.2 KB  |  30 lines

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