Yes, but it's not easy.

You need to spawn the process using "RUN", which will run it in parallel. Now you use WMI to find the running process and check it every (say) 0.1 seconds. If it's still running after your timeout you can kill it. There are UDFs available in the UDF forum for finding processes and killing them.

If the program creates a window you can also use AutoIT to control it, but that requires the AutoIT DLL to be installed on all your PCs that will log in.

[edit]
Oops - said SHELL, meant RUN
[/edit]


Edited by Richard H. (2005-06-28 06:39 PM)