Mail Archives: djgpp/1997/05/15/11:59:47
On Mon, 12 May 1997, Paul Campisi wrote:
> You tried to do a system("chkdsk") and it worked???
Yes.
> I don't
> understand. I have gotten chkdsk errors when I try even a small program:
>
> int main() {
> system("chkdsk");
> }
> Chkdsk runs, but causes errors. When I do this directly from command.com
> it works.
The above program worked for me just fine. I changed it a bit (see
below), but I don't think the difference is significant.
Can you run go32-v2 without arguments and post everything it prints?
> I believe you mentioned earlier that a DPMI swap file is opened and this
> might cause the error. Is there any way for me to close the swap file
> temporarily and reopen it after the system call?
No, you can't. But on my machine this works even though the swap file is
open, so I guess there's some other factor here.
Here's the program that works for me:
#include <stdlib.h>
int main (void)
{
return system ("chkdsk");
}
- Raw text -