Mail Archives: djgpp-workers/1999/04/10/12:00:02
>> >> >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
- Raw text -