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

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
4
fadisal 2016.08.18 13:17 #
 
gooly:

Which error?


now I have no errors put it doesn't work! it doesn't  open the notepad++!
avatar
4
fadisal 2016.08.18 13:18 #
 
gooly:

Which error?


   MessageBox(ShellExecuteW(0,"open","C:\Program Files (x86)\Notepad++\notepad++.exe",NULL,NULL,10));
avatar
2017
gooly 2016.08.18 13:35 #
 
Google would have given you e.g. this url.
avatar
13001
WHRoeder 2016.08.18 14: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));

Back to topics list   | 1 2  

To add comments, please log in or register