Script para o installjammer matar programa do Windows

Este script TCL usa a função get_process_ids e end_process da API TWAPI do Windows para verificar se um determinado programa está em execução e mata o(s) processo(s) deste programa.

set pids [twapi::get_process_ids -name application.exe]
foreach pid $pids {
catch { twapi::end_process $pid -force }
}

P.S.: Não esqueça de ativar a opção “Include Windows API Extension”.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s