delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/03/13:42:11

From: ovek AT arcticnet DOT no (Ove Kaaven)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: System command
Date: Sat, 03 May 1997 05:08:27 GMT
Organization: Vplan Programvare AS
Message-ID: <5kfee3$b6i$1@troll.powertech.no>
References: <199705011631 DOT MAA08470 AT banana DOT ece DOT uc DOT edu>
NNTP-Posting-Host: ppp-8.arcticnet.no
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019