From: Paul Campisi Date: Thu, 8 May 1997 14:03:00 -0400 (EDT) Message-Id: <199705081803.OAA01545@banana.ece.uc.edu> To: eliz AT is DOT elta DOT co DOT il Subject: Re: Exclusive access to drive Cc: djgpp AT delorie DOT com Precedence: bulk > I think the reason is that CWSDPMI opens a swap file to support virtual > memory, and CHKDSK complains because the directory entry for the swap file > isn't updated until you exit your program (at which point CWSDPMI closes > and deletes the swap file). > > It is generally not recommended to run CHKDSK while another program has > some files open. If you try that from Windows' DOS box, for example, you > will also see error messages from CHKDSK. I can run CHKDSK from a Windows DOS box with no error messages. > You didn't explain why do you need to run CHKDSK in the middle of your > program. So it's hard to answer this question. Ok.. What I am doing is trying to write a shell program. (Like TCSH) Which allows for file completion, history, and all other TCSH like commands. So when I am at my prompt in my program, everything works so far except for CHKDSK, which gives the problems listed in the previous message. and NO I don't care if someone else has done it or it is already there, I want to do it for me. The program is sort of like a much enhanced DOSKEY. Thanks! Paul