ShellExecuteA call only works one time - page 2

 

Thanks, your answers are always very helpful. I replaced "A" with "W" in your function and the import statement and it works for me.

Is there any way to get output back from the opened file? E.g. the zipped folder attached ("hw.zip") contains a .exe file which prints "Hello World!" to screen. Is there a way to return this output to MQL4? A workaround would be to get the .exe to write to a file and then read from that file but that would be less direct.

I note that there is a related thread which may be useful: https://www.mql5.com/en/forum/137456#comment_22420351

However I have not been able to make the example given there work.




Shelling out to an external command to grab its standard output
Shelling out to an external command to grab its standard output
  • 2012.01.11
  • www.mql5.com
Hi guys, I recently solved the problem of using anonymous pipes to get the output from an external shell command and thought that people here would...
Files:
hw.zip  13 kb