I ran the script at home:
Print("dataPath =", TerminalInfoString(TERMINAL_DATA_PATH));
Print("path =", TerminalInfoString(TERMINAL_PATH));
See:
2018.05.25 19:33:58.250 testMethod (EURUSD,M30) dataPath =F:Soft portableTerminalsMT_XAlpari MT5
2018.05.25 19:33:58.250 testMethod (EURUSD,M30) path =F:Soft portableTerminalsMT_XAlpari MT5
It turns out that these two properties are identical. Excess?
vdev
now run itNOT in /portable mode
xbody13
There is a PORTABLE line in the path. Here is the answer to your question?
denkir
My version:
2018.05.25 20:14:50.429 test1(EURUSD,H1) dataPath =C:UsersAdminAppDataRoamingMetaQuotesTerminal05AFEAC001BE120E62ABEF57B0056A5B
2018.05.25 20:14:50.874 test1 (EURUSD,H1) path =C:Program FilesMetaTrader5