Mail Archives: djgpp/1997/05/12/12:58:12
> > Ok.. What I am doing is trying to write a shell program. (Like
> > TCSH) Which allows for file completion, history, and all other TCSH
> > like commands. So when I am at my prompt in my program, everything works
> > so far except for CHKDSK, which gives the problems listed in the previous
> > message.
>
> Well, I don't know why it doesn't work for you, then. I just tried to
> do that and CHKDSK didn't complain at all. Could you post the
> smallest program that exhibits the problem?
You tried to do a system("chkdsk") and it worked??? 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.
As above, my program is a shell program. So the user enters a command.
and then I call system to run it (for now). so for example:
while (key!=return_key) {
.....
getche();
} // A string is being created in this loop based on input
system(command);
// Where command is the string created in the above while loop.
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?
Thanks,
Paul
- Raw text -