Download MetaTrader 5

how can i use mql to run extern ".exe" program - page 2

To add comments, please log in or register
fadisal
10
fadisal 2016.08.18 11:17  
gooly:

Which error?


now I have no errors put it doesn't work! it doesn't  open the notepad++!
fadisal
10
fadisal 2016.08.18 11:18  
gooly:

Which error?


   MessageBox(ShellExecuteW(0,"open","C:\Program Files (x86)\Notepad++\notepad++.exe",NULL,NULL,10));
Carl Schreiber
6689
Carl Schreiber 2016.08.18 11:35  
Google would have given you e.g. this url.
whroeder1
14765
whroeder1 2016.08.18 12:05  
gooly: Google would have given you e.g. this url.
  1. That link (Syntax for calling AutoIt compiled Script (.exe) using ShellExecuteW in MT4 EA (Quest) - MQL4 forum) would point out this error.
  2. See also run a *.bat from EA (Route206) - MQL4 forum
  3. and Execute an exe-file from MQL (Steffen Siegert) - MQL4 forum
// MessageBox(ShellExecuteW(0,"open","C:\Program Files (x86)\Notepad++\notepad++.exe",NULL,NULL,10));
   MessageBox(ShellExecuteW(0,"open","C:\\Program Files (x86)\\Notepad++\\notepad++.exe",NULL,NULL,10));
12
To add comments, please log in or register