Scripts: Instance ID script for MT4/MT5

 

Instance ID script for MT4/MT5:

This script allows a user to find out instance_id of the running MetaTrader instance/installation.

Author: Stanislav Korotky

 
Latest versions of MT5 create the file origin.txt in their AppData/Roaming/MetaQuotes/Terminal/XXX folder. This file containes local path of corresponding MetaTrader instance, so there is no need to run this script.
 
Thanks for the code, used it here.
Reason: