All Questions
24
questions
91
votes
2
answers
354k
views
run powershell command from cmd
how i can run this command from cmd :
powershell.exe "(get-process | ? {$_.Description -eq
"Sysinter Process Explorer"}) | select processname | out-file
$env:APPDATA\example.txt"
i still get ...
59
votes
7
answers
160k
views
Tasklist shows process but taskkill is unable to kill it, even as admin
I am trying to kill chrome on my computer. I ran command prompt as an admin and ran:
C:\WINDOWS\system32>tasklist /FI "IMAGENAME eq chrome.exe"
This returned one item:
Image Name ...
44
votes
3
answers
85k
views
How to show full command line of all processes in Windows
On Windows, in the Task Manager it is possible to see the command line of each processes but it is truncated.
How can I see the complete command line of each running process?
3
votes
2
answers
11k
views
get process name from it's own description?
How can I get the process name from computer memory by using loop depending on the process description ?
Example:
My program name is "dev.exe" in memory and its description is "a tool
for helping ...
3
votes
2
answers
2k
views
How to end unresponsive processes that can't be taskkilled in Windows?
How do I kill an unresponsive process or task in Windows when it becomes completely unresponsive (window becomes a ligt grey, cursor a rotating blue ring)?
Clicking [X] or trying to end process in ...
3
votes
1
answer
52k
views
Check if a process is running or not continually, and start multiple programs if not and terminate itself
I found this at stackoverflow and it's code is this:-
@echo off
Set "MyProcess=calc.exe"
echo "%MyProcess%"
tasklist /NH /FI "imagename eq %MyProcess%" 2>nul |find /i &...
2
votes
2
answers
1k
views
Why opening cmd.exe causes to run 2 processes?
Before:
After:
As you can see the number of processes increases by 2 from 103 to 105 processes! Why should it increase by 2? I only ran cmd.exe which is by far one process!
2
votes
1
answer
5k
views
Kill a process by PID started by Batch Script (avoiding other process of same name)
I have multiple processes by the same name (say multiple FIREFOX.exe process). A Batch script then opens another firefox.exe process and, after some predefined time, needs to kill the process it ...
1
vote
1
answer
895
views
How do I kill processes which are running with a given executable path?
I know already how I can kill all java.exe processes
taskkill /F /IM java.exe
But when it comes to a full executable path D:\Program Files\Java\jdk1.8.0_331\bin\java.exe, how do I do ?
I'm asking ...
1
vote
3
answers
1k
views
Running a script when I exit a program
I want to identify when a specific program is being shut down, and run a script when it does.
Is there a way to do that on Windows?
The thing I had in mind is running automated git commit + push ...
1
vote
3
answers
2k
views
Detect a running process with spaces in filename
I am trying to detect a running process on Windows 7 using a batch file. Processes without any spaces work just fine - e.g. notepad.exe. I cannot understand why it doesn't work and would really ...
0
votes
2
answers
2k
views
Powershell - Start Process on Different Drive from Batch CMD
Problem:
From the CMD or Batchfile, calling powershell and starting a process from a different drive or the -FilePath is failing.
0
votes
1
answer
922
views
Taskkilling the process if it's open more than 3 hours
I want to check for all processes and kill them if they are open more then 3 hours to limit screen time for a specific app(chrome) how can I do it in batch?
0
votes
1
answer
567
views
windows command prompt - execute command in new process
in command prompt I execute this line
java -jar <path_to_jd_gui_jar> <path_to_jar_file>
which opens a the jd-gui (jar viewer) to view a jar file. But if I close the cmd window it ...
0
votes
2
answers
2k
views
how to close and start a program from cmd in Windows XP?
I've been trying cmd commands such as "taskkill" on Windows XP and apparently they don't exist.
I'd like to be able to close and open a program from the cmd because I need to connect to the Windows ...
0
votes
1
answer
638
views
Stop multiple processes in server
I run several processes in one server with ssh in cmd, so how to stop those processes in one time? And also avoid to log out this server?
Here is the command:
java -jar test.jar 9001 **.***.**.** ...
0
votes
0
answers
247
views
iperf3 design GUI
I am designing GUI for iperf3.exe. When I run iperf3.exe, the text box appears after it finishes the process. I want to read output while doing the process. I try async method and task but all the ...
0
votes
1
answer
359
views
Can't kill exe task including cmd handler
Whenever i try to kill the ngrok.exe task (start /B "ngrok" call ngrok.exe tcp 22 -log=stdout > ngrok.log) with taskkill (taskkill /IM ngrok.exe /F) it doesn't work. Apparently i kill the ...
0
votes
0
answers
51
views
What is this process running?
I've a process that runs and a CMD pops up for a fraction of a second.
Procmon shows this
The process inspection shows this
0
votes
1
answer
316
views
How can I perform start command in PowerShell same as I do in CMD?
When I use start command in CMD it opens second CMD window with the same state (same location and same virtual environment). But I cannot do it in PowerShell. Is there any command for it in PowerShell?...
0
votes
1
answer
376
views
How to run TASKKILL in HTA?
all help/suggestions its appreciated.
I want make a HTA able to run taskkill commands. I have a working one, but in cmd way. Just want migrate it to HTA, because look proper.
Here my CMD:
@echo off
...
0
votes
2
answers
255
views
A seemingly impossible to terminate process
I'm running Windows 7 64-bit. Avast simply does not want to be stopped. Even SYSTEM does not kill it. I'm using these tools to run CMD as SYSTEM: http://reboot.pro/files/file/237-runassystem-and-...
0
votes
0
answers
69
views
Dropbox Desktop keeps uploading after closing
I am using the Dropbox Desktop tool and upload (for my bandwidth) large amounts of data regularly. When I want to e.g. play online I just pause the upload. Since a few days when I pause it, it keeps ...
-1
votes
1
answer
220
views
Trying to end a process that is blocking me from deleting a folder
For the past couple days, I've been trying to end a process (ACORIGINS.exe) that is keeping me from deleting a folder (Ubisoft) that I wish to delete. Every time I try deleting the folder, it says ...