Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hubcap!ncrcae!ncr-sd!crash!pnet01!rgale From: rgale@pnet01.CTS.COM (Ryan Gale) Newsgroups: comp.sys.ibm.pc Subject: Re: Problem: duplicate .BAT and .COM in DOS 3.3 Message-ID: <1310@crash.CTS.COM> Date: Tue, 30-Jun-87 14:16:28 EDT Article-I.D.: crash.1310 Posted: Tue Jun 30 14:16:28 1987 Date-Received: Thu, 2-Jul-87 01:21:56 EDT Sender: news@crash.CTS.COM Organization: People-Net [pnet01], El Cajon, CA Lines: 18 ward@chinet.UUCP writes > Ideally DOS would work like this: if a bat file exists, run it; if > the bat file refers to the same name, run the COM or EXE. This would > allow overriding COM and EXE with BAT yet still running the underlying > executable code. A good example would be FORMAT.BAT which could execute > FORMAT.COM, but for now, you've got to rename format.com formatx.com or > something. My solution was to put all of my BAT files in their own subdirectory and put that subdirectory first on the PATH. COM and EXE files can still be run (instead of a same-named BAT) by specifying the full path name, but this is rarely needed (else why would you have the BAT file in the first place?). --- Ryan Gale UUCP: {hplabs!hp-sdd, sdcsvax, nosc}!crash!pnet01!rgale ARPA: crash!pnet01!rgale@nosc.mil INET: rgale@pnet01.CTS.COM