how to get the path to the data folder

 

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...) ?

 
TerminalInfoString(TERMINAL_DATA_PATH);
 

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 ?

 
So you're goal is to know which metaquotes appdata folder corresponds whit which installation folder..?
 
I smell commercializing here ...
 
: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.
 
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
 
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

 
rod178:

Open as Indicator then 'Save As'

You will then see the path


ho ye but he needs it programmatically
 

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

:(

 
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.
Reason: