Message-ID: <001901be836b$4917fa00$5f003bd4@default> From: "Laurynas Biveinis" To: "Salvador Eduardo Tropea (SET)" Cc: "DJGPP Workers" Subject: Re: LBInstDJ Date: Sat, 10 Apr 1999 17:59:02 +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 >> >> >Error: >> >> >* Adding the variables at the end of autoexec.bat is wrong because if my >> >> >autoexec.bat ends calling Norton Commander your lines won't take effect. >> >> You >> >> >should insert your modifications after the last SET command in the >> >> >autoexec.bat or after PATH if no SET exists or if none exists at the >> >> >begining. >> >> >> >> This is in the second place of my todo list. Your idea is new for me - >> add >> >> modifications after last SET. I was thinking about making list of shell >> >> commands like win, nc, ... and adding updates before such commands. >> >> Both ways are not perfect - if win is some other command (not >> >> windows) somewhere in the middle of autoexec.bat and there path >> >> modifications after it, DJGPP installation would not work at all. Your >> >> way - what if autoexec.bat is already broken by similar installation >> utility >> >> and has SET's after win? But, of course, your way is better. I will try >> to >> >> implement it as soon as finish tinkering with registry. >> > >> >Of course there aren't a perfect solution. But perhaps you can mix both >> >things. If you'll have a list of common shells runned from autoexec.bat >> >include vc (Volkov Commander) ;-) I think I have found acceptable solution, implemented it and it works good: 1) insert @SET DJGPP=... as first line in autoexec.bat 2) look for first line with "path=" but not "rem" and insert there %DJDIR%\bin directory after '=' sign. If there is no such line, then insert @path=c:\djgpp\bin after @set djgpp= ... And I create new autoexec.bat if there isn't one :) (Who will need this feature? But...) What do you think of it? Laurynas Biveinis