I need to automate a process where i want to close a program.
taskkill /IM notepad.exe
from CMD it works fine.
But when i create a batch file in order to do the same thing, it fails. The bat file runs but the program is not closed.
How to fix this issue?