delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/08/11:40:35

From: Paul Campisi <pcampisi AT ececs DOT uc DOT edu>
Date: Thu, 8 May 1997 11:40:07 -0400 (EDT)
Message-Id: <199705081540.LAA01261@banana.ece.uc.edu>
To: djgpp AT delorie DOT com
Subject: Exclusive access to drive

Hello,
	Once again I am running into problems with system or spawn.

When I try to do the following:

system("chkdsk");
it gives me something like - CORRUPTED FAT TABLE

system("chkdsk /f");
it gives me "unable to get exclusive access to drive x" (where x is
the drive I am using chkdsk on)

The fat table isn't corrupted. If I go to a DOS shell and do a CHKDSK, it
works fine, but not from a SYSTEM, EXEC, and SPAWN.

Is it possible to get EXCLUSIVE ACCESS to a drive? or is there any other
way to run the chkdsk command?

Thanks,
	Paul

- Raw text -


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