Mail Archives: djgpp/1997/05/03/13:42:11
Paul Campisi <pcampisi AT ececs DOT uc DOT edu> wrote:
>Hello,
> I have a question about the System command. Whenever I call
>it and the file IS NOT an executable the whole program crashes. I know,
>you aren't supposed to be trying to execute the file in the first place,
>but isn't there a way to TRAP the error and not cause a crash if the
>program is not an executable? COMMAND.COM doesn't crash if you try
>to run CONFIG.SYS!
> Can anyone point me in the right directions?
COMMAND.COM only checks the extension for .com, .exe, or .bat, and if
it's neither, does not try to execute it. Try copying config.sys to
config.exe and run it.
- Raw text -