Skip to main content
Share Your Experience: Take the 2024 Developer Survey
22 votes

Taskkill.exe: don't throw an error if the process is not running

This works well too: taskkill /IM "w3wp.exe" /F /FI "STATUS eq RUNNING"
Richard Casavecchia's user avatar
21 votes

ConEmu: How to call msys2 as tab?

What to do is actually pretty simple, once you peel all the layers away. This works well as an invocation (make sure to modify it to your specific MSYS2 install location): set CHERE_INVOKING=1 & ...
jstine's user avatar
  • 320
19 votes

ConEmu: How to call msys2 as tab?

I also had problems getting MSYS2, MinGW32 and MinGW64 shells (v2016-12-07) to work in ConEmu v161206. The only (half-portable) working solution I've found is the following. Create a new task with ...
Florian Wolters's user avatar
13 votes
Accepted

Windows Task Scheduler, run task if task isn't running?

Task Scheduler - run task if it isn't running You can use a batch script similar to the below and use Tasklist and FindStr to check whether or not the EXE name of SpeedFan is running in memory. With ...
Vomit IT - Chunky Mess Style's user avatar
8 votes

Windows server 2019 shows 0% cpu usage

The issue must've been caused by HPE's firmware, I changed power settings to OS controlled and the proper CPU usage shows up now
steven chen's user avatar
5 votes

Taskkill.exe: don't throw an error if the process is not running

For a prebuild event in visual studio this worked for me: taskkill /f /im scriptcode.exe 2>nul 1>nul exit 0 see: https://stackoverflow.com/questions/5806444/swallowing-errors-in-pre-build-...
Derek's user avatar
  • 161
5 votes

Taskkill.exe: don't throw an error if the process is not running

This is a one line solution. It will run taskkill only if the process is really running otherwise it will just info that it is not running. tasklist | find /i "w3wp.exe" && taskkill /im w3wp....
nicovota's user avatar
  • 161
5 votes
Accepted

What is the longest time you can leave your computer doing a repetetive task without it taking damage?

Computers are good at repetitive tasks. If they don't overheat in the first few minutes, they never will whilst doing that task. I've had computers doing sets of the same repetitive tasks for 10 ...
Tetsujin's user avatar
  • 49.8k
4 votes
Accepted

Windows Task Scheduler Custom Handler

What exactly is the Task Scheduler "custom handler" from the Actions tab? These are system tasks and you can run the schtasks commands accordingly and search the registry to get more detail (see ...
Vomit IT - Chunky Mess Style's user avatar
3 votes

Windows Task Scheduler, run task if task isn't running?

Yes, but you first need to install Sysmon to monitor these types of events as not all programs do this. to the least of my knowledge. This will enable you to restart any app it collects in the ...
Ste's user avatar
  • 1,236
3 votes
Accepted

Avoid yes or no prompts in wbadmin script

According to this Article, you just need to add -quiet to your command. wbadmin delete backup -keepVersions:10 -quiet -quiet: Runs the subcommand with no prompts to the user.
SimonS's user avatar
  • 9,379
3 votes
Accepted

Thunderbird Add-on "Lightning": What is the difference between "Event" and "Task"?

This is not unique to Lightning. Events and Tasks are common elements of any calendaring system. The basic difference is that an Event requires attendance and therefore is a blocked off and ...
music2myear's user avatar
3 votes
Accepted

Keep Disk Space Cleanup Manager from running while I'm working?

Disk Space Cleanup Manager has two auto-starting tasks. 1 : SilentCleanup (which you already disabled from task scheduler) 2 : StartComponentCleanup In order to disable StartComponentCleanup, go to ...
Manoj's user avatar
  • 826
3 votes

Windows 10 - Disable UWP process group apps from running automatically

To disable globally or for individual apps, i.e. to prevent "UWP Apps" from running on their own in background: Go to "Settings -> Privacy -> Background Apps (scroll down to it) .....
aprilia1k's user avatar
2 votes

ConEmu: How to call msys2 as tab?

In recent versions of conemu, the msys2 shell comes as one of the default shells and can be found under: {Bash} -> {Msys2 64} If you have an old installation of conemu and don't have the msys2 ...
pbthorste's user avatar
  • 121
2 votes

Killing a process which runs with a specific commandline using taskkill command

I'd do the following: In PowerShell use the command: Get-WmiObject Win32_Process -Filter "name = 'rundll32.exe'" | Select-Object CommandLine,ProcessId This will give you back a list of all of the ...
Ahren Bader-Jarvis's user avatar
2 votes

How to (what program) kill a process in Windows that has been inactive for X seconds and is running in multiple instances

You can play around the script using :loop , goto loop and timeout exemple : :loop taskkill /im "League of Legends.exe" /fi "STATUS eq NOT RESPONDING" timeout /t 5 /NOBREAK goto loop
Fayssal Ozilf's user avatar
2 votes

Making a task to shutdown the PC when no one logs in for 5 minutes

Use Task sheduler. Insert a task with action of shutdown /s /f /t 300 with a trigger of "when system starts" (and maybe plus a trigger of "when user log off"). Insert a task with action of ...
Akina's user avatar
  • 3,225
2 votes
Accepted

Process management in TempleOS: listing and killing processes?

TempleOS equivalent of ps is TaskRep; kill is Kill(task); You can see a screen sot of TaskRep() here, #0 is the Adam task.
Evan Carroll's user avatar
  • 9,007
2 votes
Accepted

How to keep Windows focussing just on one task

Windows is not the best for letting you control how the computer uses its resources, but... In Task Manager's Details tab, right click an entry and select Priority, then set to real time to allocate ...
William Boyer's user avatar
2 votes
Accepted

Start Python script with Task Scheduler via PowerShell

Use the -Argument parameter with the New-ScheduledTaskAction command. You can add the full path as the value for the -Argument parameter (e.g. -Argument "<script path value>") to add ...
Vomit IT - Chunky Mess Style's user avatar
2 votes

Task scheduler vs shell:Startup

Both are options but they have different applications. Running a script from shell:startup Here are 3 things that are typical for using this method. When you place a shortcut or script in shell:...
LPChip's user avatar
  • 61.8k
2 votes

How do I automate tasks in EmEditor?

The macro feature in EmEditor can automate a series of steps that otherwise need to be done manually. A macro is a JavaScript file that automates a sequence of EmEditor commands. If you have a task ...
MakotoE's user avatar
  • 263
1 vote

How to use tags in a hierarchy with Microsoft Outlook tasks?

I am afraid it is not feasible to be realized using the built-in features in Outlook. An alternative I can think of it to take advantage of categories. You can create custom categories based on the ...
Yuki Sun's user avatar
  • 1,621
1 vote
Accepted

taskkill fails for process when run from Notepad++ plugin NppExec

Try running Notepad++ as an administrator. If you use multiple users on the system, you may also want to check which user is running the app. Taskkill can be fickle with some running apps based on ...
techturtle's user avatar
  • 9,216
1 vote

Windows8, taskhost.exe consuming CPU cycle for hours

Here is what I did to solve this problem. Go to action center->Maintenance, under automatic maintenance, click on change maintenance settings, set maintenance tasks daily at 11pm and uncheck 'allow ...
kenwood's user avatar
  • 21
1 vote

System and compressed memory consuming my disk

It's not 100% of your disk (MS has bad terminology for disk and CPU usage) -- they are calling 100% is 100% of your disk's "speed" or bandwidth. Of course, how fast your disk is and how the OS would ...
Astara's user avatar
  • 669
1 vote

RDP: How do I set TaskScheduler to automatically log in after being log off?

Running your batch file on login shouldn't be an issue. Either put it in your AutoRun/StartUp for your user or use a windows task to run it. To create a task look for the Task Scheduler, create a new ...
Seth's user avatar
  • 9,193

Only top scored, non community-wiki answers of a minimum length are eligible