Skip to main content

All Questions

Tagged with
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 ...
Qassam Mahmoud's user avatar
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 ...
Jon's user avatar
  • 9,335
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?
qwertzguy's user avatar
  • 2,604
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 ...
Qassam Mahmoud's user avatar
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 ...
Ξένη Γήινος's user avatar
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 &...
Bhanu Kumar's user avatar
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!
newpeople's user avatar
  • 131
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 ...
SuperUserMan's user avatar
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 ...
Sybuser's user avatar
  • 183
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 ...
Gershon Papi's user avatar
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 ...
Reado's user avatar
  • 461
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.
semtex41's user avatar
  • 1,025
0 votes
1 answer
923 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?
TheCodeExpert's user avatar
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 ...
Anonymous's user avatar
  • 153
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 ...
Natiya's user avatar
  • 259
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 **.***.**.** ...
Andi 's user avatar
  • 107
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 ...
user avatar
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 ...
dheb's user avatar
  • 11
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
dqm's user avatar
  • 97
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?...
Kyoko Sasagava's user avatar
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 ...
Melphyx's user avatar
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-...
DrDinosaur's user avatar
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 ...
Tobias Dummschat's user avatar
-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 ...
Grasshopper's user avatar