Pass global Variables to common.ini or myconfiguration.ini from a Win Powershell script

 

I want to automate testing a lot of expert advisers located in one folder. For that I neet to change sttings in "myconfiguration.ini" for each run. Within e.g. a Powershell script I want to start Metatrader with:


.\terminal64.exe /portable /config:myconfiguration.ini 


...in myconfiguration.ini I tried to use global variables, but ist does not work:


e.g.

$env:_symbol="EURUSD" or

$global:_expert="expert.ex5" (within the script)

and...


[Tester]

Expert= $global:_expert

Symbol=$env:_symbol

... (within myconfiguration.ini)


Is the there a solution for this or do I have to manipulate the text itself in myconfiguration.ini?

 
Andre Mannott: Is the there a solution for this or do I have to manipulate the text itself in myconfiguration.ini?

Obviously, you have to manipulate the text itself.

Reason: