Date: Sun, 25 May 1997 13:24:50 +0300 (IDT) From: Eli Zaretskii To: Paul Campisi cc: djgpp AT delorie DOT com Subject: Re: Exclusive access to drive In-Reply-To: <199705231352.JAA24713@banana.ece.uc.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 23 May 1997, Paul Campisi wrote: > Ok. I tried it outside of Windows. First, (of course) I got that > I didn't have a DPMI driver, so I got that. Then, I recompliled and ran > it, and it worked in pure DOS. So now we know that it is Win 95 which won't > give exclusive access to the drive. It seems that they have added something to CHKDSK in Windows 95 so that it refuses to work from within a DJGPP program. Sorry, I don't see how this can be solved. You might consider asking Microsoft what exactly is the reason. > Do you know of a way in assembly, to execute and run the file? > Maybe by bypassing the whole "system/spawn/exec" command, it will work. > I don't know the internals of those commands, but maybe when they are > executing, they don't allow the child process exclusive access. AFAIK, this will not solve your problem. There's nothing in DJGPP library function that can explain this, and going to assembly won't change the fact that you still run CHKDSK from a DJGPP program.