www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/23/09:54:50

From: Paul Campisi <pcampisi AT ececs DOT uc DOT edu>
Date: Fri, 23 May 1997 09:52:58 -0400 (EDT)
Message-Id: <199705231352.JAA24713@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

> I'm stomped.  What version of DOS was that?  Is that DOS 7 which comes
> with Windows 95?  Maybe there's something special about that version
> of CHKDSK, I don't now.  I tested this with DOS 5.0 and DOS 6.20, and
> it worked for me.

	Yes. Dos 7 under Win 95. I've even tried lock/unlock 'ing the drive,
hoping to get access to it.

> Does it work for you OUTSIDE Windows?  If you didn't try that, please 
> do.  We cannot help you solve a problem if we don't know how to reproduce 
> it, right?  We *must* first arrive to a set of conditions which reproduce 
> a problem, and we must know that what works for me on my machine also 
> works for you on yours, before we can think about a cause for the 
> problem.  So please try running the program on plain DOS, not from the 
> Dos box on Windows, not from MSDOS shell, just DOS and COMMAND.COM.

	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.
	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.

Thanks!
	Paul Campisi 

- Raw text -


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