Message-ID: <002101be84f8$a8869260$b1003bd4@default> From: "Laurynas Biveinis" To: "Salvador Eduardo Tropea (SET)" Cc: "DJGPP Workers" Subject: Re: LBInstDJ Date: Mon, 12 Apr 1999 17:23:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Reply-To: djgpp-workers AT delorie DOT com >1) Detect all the lines where PATH is set (PATH=, PATH, SET PATH, etc, etc). >2) Discard the commented lines (rem, :, any other?). I already do so. >3) Detect which of these lines contains %PATH%. I will do this too, but for other purpose - I will insert %PATH% in any path setting lines where it is missing. This will help to ensure that djdir on the 1st path line will not be skipped and will repair broken autoexec.bat where first paths are not included by laters. >4) Add the djgpp stuff (SET PATH=djdir;%PATH%?) after *all* the lines that >sets the path in a non-additive way. I do this in 1st path setting line and later inserting %path% where it is missing will ensure that djdir will not be skipped. >5) If no such a line just add one. Sure.