I made a program that scans the subnet of my company and let me do lot of things on single client or on all clients together (like shutdown all). i leave a screenshot that show how my program works.
For some needs im trying to add a function with…
I just got a windows command prompt to freeze and I could not close it from another terminal with taskkill /IM cmd.exe /T /F
I had to open task manager and and when trying to end the task got a pop up window where I add to check an "abandon unsaved…
I am trying to write a batch file that will open two Excel documents and close them without losing data.
I need this because the first document is automatically downloaded from the Internet every day and contains raw data. The second document uses…
I am trying to kill all processes on a terminal server for a specific user, but I want to have 2 or more processes not killed. I am unsure on how to filter multiple Imagenames that are not equal?
I have previously tried using -and or declaring /FI…
I am using Scilab to access a software called LTSpice (XVIIx64.exe) and whenever I use wmic/taskkill/powershell.exe "Get-Process XVIIx64 | Stop-Process". or whatever killing commands, it doesn't actually kill the process (it does close the program,…
I am writing a script where I am unable to close one of the excel files open in Windows. There are many open files in Microsoft Excel but I have not opened them as f.open() in python.
Before the script completes it has to write to same excel file…
I am trying to kill a task but in order to do it I need admin privileges.
And so far I was not able to find a functional code that would bypass the need for admin. And when I found one than it was filled with errors or was made for python 2.
no error but still cannot kill the process
import time
import subprocess
total_breaks = 3
break_count = 0
print("This program started on " + time.ctime())
while(break_count < total_breaks):
time.sleep(5)
process =…
I have been working on a project idea today, and I encountered this issue while attempting to kill an audio task. Here's my code (Problem is after the code block):
:two
ECHO Reading...
start C:\Users\Gigabyte\Documents\Audacity\FDD.wav
timeout /t…
I have three batch files, each opening one instance of NUnit. I want to kill a particular instance of NUnit when the tests are completed. I am able to fetch the three process ID's for three NUnit instances.
But is there a way to find out which…
I have a command line program which I'd like to keep running until I open it again, so basically a program which first checks if there's currently any already running instance of itself and kill it.
I tried os.system('TASKKILL /F /IM program.exe')…
I have 2 unwanted processes running: foo.exe and bar.exe, and both have child processes started by them.
I want to use taskkill to terminate all these processes (foo.exe, bar.exe and all child ones). Do I need to use \t parameter only once or do I…
i want to kill a java process through a batch file, but safely.
The problem is, when i use
taskkill /IM java.exe
it wont kill the process because java doesn't allow it.
When i use
taskkill /F /IM java.exe
it works, but there is the risk that files…
Sorry for the awfully worded title, I have a batch file that runs the command:
"taskkill.exe /F /FI "status eq NOT RESPONDING"
I then attached a shortcut of the file to my task bar so that whenever a program doesn't respond I have quick access to…
I have to kill a Java process gracefully from windows. The requirement is that there is a Java main class XYZ.java which has a shutdown hook added named ABC.java containing some piece of code.I have to run code present in ABC.java when XYZ.java…