Questions tagged [taskkill]

Command line tool in Windows systems used to terminate tasks by process id (PID) or image name.

Useful links:

  1. TASKKILL on technet.
  2. TASKKILL on SS64 help pages.
280 questions
0
votes
1 answer

pass parameter to taskkill() in matlab?

Suppos there are many matlab.exe running on a windows PC, I am trying to terminate all of them, except the one I am working on. I did the following: curPID = feature('getpid') %say curPID return 10000. %then follow: system('taskkill /F /FI "PID ne…
XAM
  • 21
  • 4
0
votes
2 answers

batch - windows control panel taskkill not working

So i'm making a simple batch file that switches themes upon request. When entered the name of a theme located in the same directory, it runs it using start then it opens Control panel to switch theme. It should wait 10 seconds and Taskkill it by the…
Mr. Mocha
  • 43
  • 1
  • 10
0
votes
1 answer

Can atexit() be called during a taskkill command?

I am trying to use the atexit function to call a function but it doesn't seem to work if I use a batch file to do a taskkill command on the program. Is there some way to make this work?
0
votes
1 answer

How to kill specific HTA based on window title

I have an HTA file with the filepath: C:\Users\ME\Desktop\DataTable.hta which has a window title of DataTable as declared in its code using DataTable I'm trying to close this specific HTA window using DOS, javascript or vbscript.…
Mathomatic
  • 899
  • 1
  • 13
  • 38
0
votes
1 answer

Why process is not getting killed?

I have a process in Window, which is process of our own product. Problem is my process is not getting killed. Product having exe of process is already got uninstalled successfully. So, exe no longer exists still you can see process running in task…
Pranit Kothari
  • 9,721
  • 10
  • 61
  • 137
0
votes
1 answer

Windows 8.1 batch file - closing separate command window

I'm trying to run a batch file that will close a different cmd window. I know I can do this: TASKKILL /IM "myapplication.exe" /F But whilst this does (obviously) kill the task, it doesn't close the cmd window myapplication.exe was running in. I…
Kev
  • 143
  • 1
  • 1
  • 8
0
votes
1 answer

For Loop, List, and TaskKill in Windows Batch Commands

I want to create a list of executables and then create a for loop to taskkill all of the executables in the list. I used this as reference: Create list or arrays in Windows Batch , but I still cannot figure it out. This is what I tried... set list…
emilk
  • 75
  • 1
  • 3
  • 10
0
votes
2 answers

Starting IE 11 from batch file - keeps previous tabs

I am using a batch file to kill all instances of internet explorer, and then start it again using a shortcut that is on the hard drive. The shortcut is a HTML file that has a URL & Login information in it. The IE version is IE 11. The site…
steve_o
  • 1,243
  • 6
  • 34
  • 60
0
votes
1 answer

Terminate Firefox Gracefully without Error when Reopens

I am using taskkill /f /im firefox.exe to forcibly restart Firefox that has multiple tabs open. It terminates the application, but when it reopens, it shows crash error. Is there any way to terminate Firefox cleanly/gracefully so it does not prompts…
Imsa
  • 1,105
  • 2
  • 17
  • 39
0
votes
0 answers

ID of a Process from Java Program on Windows 64-bit

In Java program I've object of Process, I want to know it's PID. Program is running on Windows 64-bit machine. I've come across this, but couldn't make them work. I need PID of process, because I want to kill the process if it's still running)…
user148865
  • 326
  • 1
  • 5
  • 19
0
votes
1 answer

Python executing commands in the command prompt (taskkill)

I'm trying to use os.system to use the taskkill command in command prompt. ill gut out the only part im having trouble with: os.system('taskkill /s %s /u CORP\Administrator /p CLARiiON! /pid AxAuto.exe'%(connection[i])) The variable connection[i]…
bladexeon
  • 696
  • 3
  • 10
  • 31
0
votes
2 answers

How to kill a service in a batch file every 20 seconds?

A task called "FireSvc.exe" (McAffee service) keeps interfering with our app upgrades. I put > taskkill /f /im "FireSvc.exe" in a batch file. We continuously run this during installs so the software will successfully upgrade. I'm not positive why…
bluforce
  • 1
  • 3
0
votes
1 answer

sc queryex themes, taskkill /pid 1148 /f

I want to know how to stop a hanging service with c# like i would do in cmd using sc queryex servicename to get the pid and taskkill /pid pidnumber /f to kill the hanging service... I have read Stopping windows service with taskkill but this did not…
Nomistake
  • 893
  • 2
  • 17
  • 32
0
votes
1 answer

Print all PID from a tasklist command result

I am trying to display all the PID from several processes printed as a result from the tasklist command. Can somebody help me please ? I also have another issue.When I run the tasklist /FI "Imagename eq javaw.exe" /FI "Windowtitle ne Jenkins*" the…
Luci
  • 85
  • 1
  • 12
0
votes
0 answers

Batch script to kill a process if not responding in a for loop

I am trying to install some windows standalone update files and to do this I need to use wusu.exe. Every now and again wusu.exe will hang. I have created a batch file called prereqs.bat and in this file I have calls to the wusu.exe. I need the…
Akhenax
  • 1
  • 3