- To close a program
Output may defer according to your open system tasks so, write the code and execute/run your batch file
@echo off
taskkill /f /im notepad.exe
It will close all NOTEPAD Program if open /f = to forcefully terminate the process(es) /im = Specifies the image name of the process to be terminatedProgram
After writing the code, Double-click your batch file, It will close the specified program
:: to close any open program
taskkill /f /im [PROGRAM_NAME]
:: to close any program via its PID
taskkill /pid [PID_NUMBER]
Concept
Coming Soon !
QuickIn order to succeed you must fail, so that you know what not to do the next time.