Questions tagged [kill-process]

This tag refers to the action of terminating (aborting) a process.

Use this tag for questions related to killing a specific process on a system.

701 questions
0
votes
1 answer

How do I kill a process with the .NET framework?

I'm writing an application in C#, and I'd like to close some other application—Internet Explorer, say. I've seen a lot of results for how to close the application you're building, but I want close an external program and I'm not sure where to…
The Woo
  • 17,809
  • 26
  • 57
  • 71
0
votes
3 answers

How to stop a process in MS SQL Server?

I have some processes that are taking long time to terminate. I had run q query that took 30 hours "I forgot about it" so I killed it using "kill id" but it has been trying to roll back for more than 30 hours already. Can someone please tell me how…
Jaylen
  • 39,043
  • 40
  • 128
  • 221
0
votes
0 answers

Killing Process System.exit(1);

I need help. First I use: android.os.Process.killProcess(android.os.Process.myPid()); System.exit(1); this code is run fine but I change my device and version of androids are different, first I use android 4.0 ,now I change to android…
0
votes
1 answer

Android: Killing third a app

I've a problem with killing third party apps from my application. Here's the code: ActivityManager activityManager = (ActivityManager) getApplicationContext() .getSystemService(ACTIVITY_SERVICE); List appProcesses =…
0
votes
0 answers

Do an operation before Ctrl+Alt+Del is killing my application

I have a Console Application (App1) which runs before other application (App2) and confirm or reject by returning an error code the launch of App2. When App1 return error code 0 - App2 being launched and if the error code is different than 0, App2…
Ofir
  • 5,049
  • 5
  • 36
  • 61
0
votes
1 answer

How to kill a hidden process in Windows 7

I have a hidden process started by a 3rd party vendor software running on my machine that I am unable to stop or kill it using the following methods: Use the Windows Service commend line: sc stop "Process_Name" or sc config "Process_Name" start=…
Bill-L
  • 21
  • 1
  • 1
0
votes
1 answer

Android kill service from a service and prevent it to reopen

Im developing an application and I need to block some apps from one service. ¿How can I kill those applications services and prevent them to restart when my service is running? Thank you very much :)
Rodrigo Cifuentes Gómez
  • 1,304
  • 2
  • 13
  • 28
0
votes
1 answer

"python http server" automatically shut down due to

nohup python -m SimpleHTTPServer 80 & After executing the above command, create a http server http server in linux vps often will automatically be killed(About one to two hours), that is why? nohup 36.19.96.16 - - [05/Sep/2013 03:20:49] "GET…
sottish
  • 125
  • 2
  • 8
0
votes
1 answer

How to kill Processes running under different users using c++ code

The following code works fine in displaying the process id of all the processes (eg: notepad.exe) running under different users. But process under current user is alone getting killed. I need to kill all the processes running under different…
0
votes
1 answer

VB: Encapsulating an Application Object with a Process

I am starting an external application from Visual Basic to perform CPU and memory intensive computations. The code more or less looks like the following: gApp = New CANoe.ApplicationgApp = New CANoe.Application While gApp Is Nothing 'wait…
arthur
  • 1,034
  • 2
  • 17
  • 31
0
votes
1 answer

failed to kill a returning process

I have an invisible mspaint.exe process (no open window) that runs apparently at startup on WINDOWS XP. I tried the usual ways to kill it, but none of them worked. 1) Task Manager: the process disappears but returns immediately. 2) Command Prompt:…
Jeremy
  • 1
0
votes
2 answers

Android app that kills background processes to save power

I am writing an Andoid app so that when battery life gets below a certain level, a dialog with options of how to save the battery appears. One of those options is to close all background apps/services (processes) using…
0
votes
1 answer

Is there any difference between Android Application Settings -> Force Stop & Stop Process under Eclipse?

I have developed a simple background service, which tries to prove self resistance when app is killed. For this purpose I return in onStartCommand - START_STICKY - obvious ! When I'm testing killing service's process either: from Application…
damax
  • 453
  • 1
  • 5
  • 18
0
votes
1 answer

code that doesn't work...Kill-process , search-for-file , streamwrite on file searched file

can you help me with that code ? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As String = "C:\Users\Andy\Documents\Visual Studio 2008\Projects\minecraft srv\" For Each app As…
0
votes
3 answers

Store a string until the application gets "force stopped"

I need a way to store a json-string as for as long as the application is alive. So to put this into other words :) If the application changes orientation or gets paused or stopped i need to store my value/string.. But if the application gets forced…
Inx
  • 2,364
  • 7
  • 38
  • 55