Windows 11 Version 22H2 (OS Build 22621.1265)
One of my favorite things about Windows 7 was using .bat files to close all processes associated with whatever I was doing— after saving my work, where applicable of course. It was one of my life's simple joys to click one thing— actually, I press 1 macro key on my keyboard, which executed a .bat file —and close the game I was playing, my voice controls for the game, my voice chat program, and any other related software.
An example of my old .bat file looked like this:
Batch:
@echo off
@echo Terminating chosen processes...
taskkill/F /IM "game.dll"
taskkill/F /IM "voicebot.exe"
taskkill/F /IM "discord.exe"
taskkill/F /IM "hotkeynet.exe"
exit
Is it possible to accomplish this same feat in Windows 11? Could someone please provide me with a .bat file example, if it is?
Many thanks for reading, and for any help anyone may be able to offer.
- Windows Build/Version
- Windows 11 Version 22H2 (OS Build 22621.1265)
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- ORIGIN PC Genesis
- CPU
- AMD Ryzen 5 5600X 6-Core 3.7GHz (4.6GHz Max Boost)
- Motherboard
- MSI MEG B550 Unify
- Memory
- 64GB CORSAIR VENGEANCE RGB RT 3200MHz (4x16GB)
- Graphics Card(s)
- AMD Radeon™ RX 6700 XT
- Sound Card
- None ☹
- Monitor(s) Displays
- 24" Sceptre (don't ever buy these)
- Screen Resolution
- 1920×1080
- Hard Drives
- 2TB Samsung 970 EVO Plus PCIe NVMe
- PSU
- CORSAIR CS750 SERIES PLUS GOLD
- Case
- Corsair 7000D Airflow
- Cooling
- iCUE H150i ELITE CAPELLIX Liquid CPU Cooler
- Keyboard
- Logitech G510
- Mouse
- Redragon
- Internet Speed
- 240 Mbps ↓ 7 Mbps ↑
- Browser
- Microsoft Edge
- Antivirus
- I, too, like to live dangerously.
- Other Info
- I'm not happy with the video card because it doesn't support my favorite screensaver. ☹
I desperately need more SDD space. ☹