If it helps anyone around here, the main thing I figured out is that ShellExecuteA wont work reliably with familiar DOS commands within MT4 because it expects all strings to be UNICODE. Just switch the declaration from A to ShellExecuteW and your command calls will work like a charm!
e.g., to call a batch file: ShellExecuteW(0, "Open", "C:\\MyBatch.bat", 0, 0, 3);
PS: This thread shows up at the top of Google's search results w.r.t this topic, i.e., running DOS commands from MT4.. so yes, it IS relevant even after years, and I dont mind bringing this back up for air
Same to me (looking for DOS-related possibilities). And to honor someone for his help, probably saving a lot of someone else's time, is worth a kind of thank you anyway. What I join in.
you have to understand onething. if some one give good food to others he's good to them. but if he spit and give the food to me means, he is bad person to me. don't you understand?.
Posts and questions have no expiration dates.
Knock it off, man, let it go...
I came to this post and regardless of the time passed, it helped me a lot!