(04-21-2024, 07:22 PM)Kernelpanic Wrote: @JRace - the autoexec.bat is from 1995! From Windows XP onwards it was no longer necessary. It was still there, but it was empty because the system no longer took it into account.
The autoexec.bat and the config.sys were only relevant for the DOS-based versions of Windows, i.e. until Windows Me.
Which is why my original post never mentioned AUTOEXEC.BAT. YOU mentioned it in your previous post. I guess I misunderstood the intent of that post.
I think I misread the intent of that post. I thought maybe you did not understand how my batch script worked, so I went on to explain how the batch file worked, and that a permanent PATH setting is not needed.
I then listed a batch script from my own Quick C installation which demonstrated that permanent PATH settings are not necessary for compilers, even in DOS.
If a person has just one compiler or is using one particular compiler all day, every day, then a permanent PATH setting can be justified, but my compiler batch scripts follow a "set it, use it, forget it" philosophy that has worked very well for years.
(EDIT: I've tweaked the batch script in my first post and added a few more comments. Not a @TerryRitchie level of comments, but a few which may be useful.)