Accessing Files

 

Good morning

I want to try and access the LOG files and have read about using routines in KERNEL132.dll (https://www.mql5.com/en/articles/1540) and this looks useful but I am trying to figure how to retrieve the path to the file

In Older builds everything appeared C:\Program Files\MetaTrader4....etc and I could locate that using the TerminalPath() function

but it appears my log files are located in the area accessed by Open Data Folder instruction C:\Users\user\AppData\Roaming\MetaQuotes\Terminal\915566BA06ADA407569C544CC0D97611\logs

Is there an appropriate command somewhere to programmatically retrieve this path

 
peterhw1:

and I could locate that using the TerminalPath() function [...]

Is there an appropriate command somewhere to programmatically retrieve this path

TeminalInfoString(TERMINAL_DATA_PATH)
Reason: