Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!burdvax!bbking!rmarks From: rmarks@KSP.Unisys.COM (Richard Marks) Newsgroups: comp.sys.ibm.pc Subject: Re: Open files when PC goes down Keywords: Recovery Crash Directory Message-ID: <673@bbking.KSP.Unisys.COM> Date: 20 Mar 89 19:49:55 GMT References: <1939@holos0.UUCP> Distribution: usa Organization: Unisys/Knowledge Systems Organization, Frazer, PA Lines: 18 In article <1939@holos0.UUCP> lbr@holos0.UUCP (Len Reed) writes: >I am developing a system that runs on MD-DOS 3.x. I need to be able >to save as much data as possible if the system crashes. > >As I understand it, MS-DOS doesn't update the directory entry on an >output file until the file is closed. > >So, is there a way to get MS-DOS to update the file size without closing >the file? On DOS 3.3 use int 21, func 68, BX=handle to secure a file. Also on any DOS 2.x/3.x can try int 21, func 0D which resets the disk. On some BIOSes this will update all open files. Good Luck, Richard Marks rmarks@KSP.unisys.COM