delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/25/06:25:32

Date: Sun, 25 May 1997 13:24:50 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Campisi <pcampisi AT ececs DOT uc DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Exclusive access to drive
In-Reply-To: <199705231352.JAA24713@banana.ece.uc.edu>
Message-ID: <Pine.SUN.3.91.970525132425.4960B-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019