Запуск внешних файлов из МТ4

 
Не нашел в MQL4 фунции, подобной Execute( string <путь_к_исполняемому_файлу_с_параметрами_запуска> ). С чем это связано, уважаемые разработчики? Это особая политика безопасности компании?
 
Да. Можно использовать dll-ки.
 
Да, а в ней WinAPI WinExec() - 'Как из эксперта запустить файл?'

The WinExec function runs the specified application.

Note This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.

UINT WinExec(
  LPCSTR lpCmdLine,
  UINT uCmdShow
);
Parameters lpCmdLine [in] Pointer to a null-terminated character string that contains the command line (file name plus optional parameters) for the application to be executed. If the name of the executable file in the lpCmdLine parameter does not contain a directory path, the system searches for the executable file in this sequence:
  1. The directory from which the application loaded.
  2. The current directory.
  3. The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
  4. The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
  5. The directories listed in the PATH environment variable.
uCmdShow [in] For a list of the acceptable values, see the description of the nCmdShow parameter of the ShowWindow function. Return Values

If the function succeeds, the return value is greater than 31.

If the function fails, the return value is one of the following error values.

Return code/value Description

0
The system is out of memory or resources.
ERROR_BAD_FORMAT The .exe file is invalid.
ERROR_FILE_NOT_FOUND The specified file was not found.
ERROR_PATH_NOT_FOUND The specified path was not found.


Или CreateProcess()
BOOL CreateProcess(
LPCTSTR lpApplicationName,
LPTSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCTSTR lpCurrentDirectory,
LPSTARTUPINFO lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
);
 

Большое спасибо за исчерпывающий ответ.