Message-ID: <349BD551.126EE7F5@a.crl.com> Date: Sat, 20 Dec 1997 08:25:21 -0600 From: Weiqi Gao Organization: Spectrum Healthcare Services MIME-Version: 1.0 To: "Cross+Road's" , opendos AT delorie DOT com Subject: Re: question shelling-out to dos References: <199712200631 DOT AAA09272 AT endeavor DOT flash DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Cross+Road's wrote: > > A text editor in a net program I use allows for the shelling out to dos > and do other operations before returning with exit when desiring. What I > have noticed is that frequently but not always I recieve an error: "error > in the call to command.com, press any key to continue". I cannot predict > when this happens however it happens more often than not. My shell path has > command.com in the opendos directory and I have a copy of command.com in the > root with the +h attribute. > Is this caused by my applacation or is there something I am missing in > opendos? Your program might be shelling out to a hard coded "C:\\DOS\\COMMAND.COM" rather than useing either the SHELL or the COMSPEC environment variable. Worse yet, it might be shelling out to "COMMAND.COM" only causing strange behaviors in different working directories. VIM, for example shells out correctly under OpenDOS. -- Weiqi Gao weiqigao AT a DOT crl DOT com