Mail Archives: djgpp/1997/05/08/11:40:35
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 -