Execute batch files (.bat)
tradeigel, thank you very much,
I suppose that the solution is this:
I suppose that the solution is this:
#import "shell32.dll"
int ShellExecuteA(int hWnd, int lpVerb, string lpFile, int lpParameters, string lpDirectory, int nCmdShow);
#import
void init() {
string path = "D:\\sample.html";
ShellExecuteA(0, 0, path, 0, "", SW_SHOW);
}
I have no experience with programming DLL, hare test Monday morning and I hope to have luck
Yours sincerely
yeah...although I don't think that SW_SHOW is declared already. I also would save the return value of ShellExecuteA() for error handling, just google for "ShellExeceute()" or visit msdn.com.
It is possible to run a batch file (.bat) from a program mql4 EA?
Thank you