Download MetaTrader 5
To add comments, please log in or register
Freelance service: the safe way to order a trading robot. Try it!
Bogdan Caramalac
1103
Bogdan Caramalac 2014.04.28 10:05 

Hi guys,

Do you know any registry key or other procedure to get the path to the data folder used by MT4 (the one in APPDATA...) ?

qjol
3243
qjol 2014.04.28 10:18  
TerminalInfoString(TERMINAL_DATA_PATH);
Bogdan Caramalac
1103
Bogdan Caramalac 2014.04.28 11:07  

Thanks, but I actually wanted to know the path from outside the trading terminal (for instance, to be used by a setup program).

For instance, the user selects a metatrader installation to be used for an installation (some MT installed in program files). How could I know, that for some path, its corresponding appdata folder is C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\FF5C0E29FAC93F5DD90858C939E9C0E8 ... ?

The user may not use the /portable switch, so simply installing an expert in the corresponding subfolder within the installation folder won't be enough, as the station looks in APPDATA

How can I know which ID is attached to which instalation ?

wouter
48
wouter 2014.04.28 11:27  
So you're goal is to know which metaquotes appdata folder corresponds whit which installation folder..?
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.04.28 11:43  
I smell commercializing here ...
wouter
48
wouter 2014.04.28 12:16  
:o Understanding each other is the primary step to solutions. And if i posses the knowledge to solve an issue I would do it for free.
Alain Verleyen
Moderator
30297
Alain Verleyen 2014.04.28 16:04  
TheEconomist:

Thanks, but I actually wanted to know the path from outside the trading terminal (for instance, to be used by a setup program).

For instance, the user selects a metatrader installation to be used for an installation (some MT installed in program files). How could I know, that for some path, its corresponding appdata folder is C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\FF5C0E29FAC93F5DD90858C939E9C0E8 ... ?

The user may not use the /portable switch, so simply installing an expert in the corresponding subfolder within the installation folder won't be enough, as the station looks in APPDATA

How can I know which ID is attached to which instalation ?

https://www.mql5.com/en/forum/149578
rod178
274
rod178 2014.04.28 16:34  
TheEconomist:

Hi guys,

Do you know any registry key or other procedure to get the path to the data folder used by MT4 (the one in APPDATA...) ?

Open as Indicator then 'Save As'

You will then see the path

qjol
3243
qjol 2014.04.28 17:13  
rod178:

Open as Indicator then 'Save As'

You will then see the path


ho ye but he needs it programmatically
Loopy
6
Loopy 2014.04.30 02:28  

Can you plz explain this...

My install folder is: D:\MT4 Platforms\MT4 NEW

My data folder is: 7C839FAD9F5CD2AF910277D0DD718556

MD5 hash (D:\MT4 Platforms\MT4 NEW) = d510de28146f7af658870ce8e8c1cdb5

MD5 hash (D:\MT4 Platforms\MT4 NEW\) = f91ed39f76c6cadf21bf42a7969cb896

MD5 hash (D:\MT4 PLATFORMS\MT4 NEW\) = 672e300f4b82f2dc2d836de582d96659

MD5 hash (D:\MT4 PLATFORMS\MT4 NEW) = d50360cc7c2266eb97152e0667a8d82e

MD5 hash (d:\mt4 platforms\mt4 new) = cc2639dae0689b2633b7f9afe9df50aa

MD5 hash (d:\mt4 platforms\mt4 new\) = f92a70ba5d49510a7cd669bd6f4a704d

:(

Alain Verleyen
Moderator
30297
Alain Verleyen 2014.04.30 06:40  
l00p:

Can you plz explain this...

My install folder is: D:\MT4 Platforms\MT4 NEW

My data folder is: 7C839FAD9F5CD2AF910277D0DD718556

MD5 hash (D:\MT4 Platforms\MT4 NEW) = d510de28146f7af658870ce8e8c1cdb5

MD5 hash (D:\MT4 Platforms\MT4 NEW\) = f91ed39f76c6cadf21bf42a7969cb896

MD5 hash (D:\MT4 PLATFORMS\MT4 NEW\) = 672e300f4b82f2dc2d836de582d96659

MD5 hash (D:\MT4 PLATFORMS\MT4 NEW) = d50360cc7c2266eb97152e0667a8d82e

MD5 hash (d:\mt4 platforms\mt4 new) = cc2639dae0689b2633b7f9afe9df50aa

MD5 hash (d:\mt4 platforms\mt4 new\) = f92a70ba5d49510a7cd669bd6f4a704d

:(

Good question.
/ /12
To add comments, please log in or register