I installed mql5 at my second hard drive D:\MetaTrader5\
when I open the application the code and examples are at C:\Users\eric\AppData\Roaming\MetaQuotes\Terminal\03CEB463426HHHi55664019F2D25A05B7513B\MQL5\Experts
I rather want them at D:\MetaTrader5\MQL5\Experts
what is the terminal folder where everything is?
how to change it to my stuff to be at D:\MetaTrader5\MQL5\Experts??
Most likely your terminal and metaeditor are working in guest mode (https://www.metatrader5.com/en/terminal/help/start_advanced/start, https://www.metatrader5.com/en/metaeditor/help/open).
So you can run them using "/portable" key to let them use the same working path which you have specified during installation process.