From: Paul Campisi 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 Precedence: bulk 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