Problem closing running program via script.

Hi,

In my stop script I ttry to:

ShellExecute('taskkill /IM RTV* /F', '');

Only nothing is happening, if I go to the command line and give taskkill /IM RTV* /F then the program is closed.

What could be the problem?

Regards,

Ferry

Not sure, but perhaps

ShellExecute('taskkill', ' /IM RTV* /F');

or

ShellExecute('cmd.exe', '/c taskkill /IM RTV* /F');
ShellExecute('taskkill','/F /IM RTV*');

This did the job :slight_smile: