Skip to main content

All Questions

Tagged with
91 votes
2 answers
352k 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,325
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
871 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
911 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
565 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

15 30 50 per page