taskkill

Safely kill a process from .bat file

I have a VB6 application that needs to update it's self. For this purpose, the PM has recommended using a batch file that is to be launched from the application. The batch file should kill the process, download the new version from a local server, overwrite the old files and launch the application again. My problem with this is that I am...

taskkill in an if condition?

Hello, Has anyone used taskkill on Win XP in an if condition? I want to use it as a watchdog to restart a program in case it leaks memory and grows too big by adding it in an unending loop. For example with the following command I can kill Internet Explorer if its memory usage is greater than 40kb (will happen every time): taskkill /...

task kill command does not work for c# app

I have c# winform bug: when the application is waiting for user input yes/no/cancel taskkill command line does not work. Any idea? ...

taskkill from PHP exec

Hello all, I have just tried to execute this: function kill_hr(){ exec("taskkill /IM uper.exe", $output = array(), $return); print_r($output); echo "<br />".$return; } However, the output is this and its not very useful: Array ( ) 1 When the process doesn't exist its this: Array ( ) 128 I am trying to work...

taskkill Mysql from .ASPX -- Permission Problems?

Our mysql instance occaisionally locks up during backups. Currently we must VPN into the corporate network (to obtain work I.P.), remote desktop into the server, open the task manager, and manually kill the mysqld-nt.exe process. Instead of doing all of this we are attempting to create a simple webpage that we can log into to kill and r...

Killing a process with taskkill /F returning code 0

Hi, I need to kill a windows process (java.exe). I'm currently using: taskkill.exe /F /IM java.exe I need to use the /F option since is a critical process,but in this way I get a return code 1 instead I need a return code 0 (returned when I don't use /F for killing other not critical processes) how could I fix this problem? Many tha...

Periodically shut down a program

I want to kill an executable of a game named KnightOnline and deny user to run it. I'm using: Process.Start("taskkill.exe", "/f /im kol.exe"); but it's showing a command window. How can I hide the command window, or is there another professional but infamous method to deny an unwanted program? EDIT: I edited hosts and blocked login p...

Taskkill an untitled process?

So I'm using the taskkill.exe which comes with Vista and I want it to do something especially complicated.. There are multiple instances of java.exe running, and I want it to find the one that is untitled.. so this is my command: taskkill /IM java.exe /FI "WINDOWTITLE eq " I also tried: taskkill /IM java.exe /FI "WINDOWTITLE ne Auto...

Handle force close?

Hello, Is there a way to notify an activity/service of a force-close request right before it gets killed? I mean when the user hits the force close button in Menu>Settings>Applications>Manage applications>app name>Force Close. Thanks! ...