ExecAndWait function
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function ExecAndWait(const CmdLine: String; CmdShow: Word): DWord;  
function ExecAndWait(const FileName, Params: String; CmdShow: Word = SW_SHOWNORMAL): DWord;  

Description
The ExecAndWait function starts an executable file and waits before process next line of code until the executed file will be terminated.  

Example
ExecAndWait('C:\Utils\MyTool.exe', SW_SHOWNORMAL);