I am using Arduino IDE 2.3.6 for Windows. I want a hex file for each compiled sketch but it stores it in the default sketchbook folder which is never where I am working. If I change the default sketchbook folder then it can not find the installed libraries.
I find it to be very strange behavior on the part of the IDE that it does not store the hex file in the same directory as the sketch itself!
How do I get it to store the exported hex file in the same directory as the sketch itself and not somewhere that is hard to find and get to?
No, it's in the sketch directory. Your "sketchbook folder" did put me on the wrong foot.
I'm not sure if it can be done. I think that this is one for the specialist.
If it can be changed, it will be in the file platforms.txt; on my Windows system C:\Users\bugge\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\platform.txt