2009/09/09 07:56

How to launch application ?


You can launch application on windows by ShellExecute function. Following is the simple example to launch application.

use ShellAPI;

.
.
.

ShellExecute(Handle, 'open', PChar('c:\test\app.exe'), nil, nil, SW_SHOW);


In case of running DOS command application such as batch file and you want not to display user, put SW_HIDE in the function option as follow

ShellExecute(Handle, 'open', PChar('c:\test\kurapa_backup.bat'), nil, nil, SW_HIDE);

Trackback 0 Comment 0

Trackback : Cannot send a trackbact to this post.