Since 3 days ago I was trying to close folders using batch file, I've checked multiple sites for the script and none of them worked. For example I open manually without start the folder "CD_Restored" wich is located in C: then I open a batch file inside it to close it, so I wrote:
TASKKILL /F /FI "WINDOWTITLE eq CD_Restored" /IM explorer.exe
and I got this message "information: no in-service task matches the specified criteria"
Also I've wrote:
@echo off
set shell = createobject("wscript.shell") : if shell.appactivate("CD_Restored") then shell.sendkeys "%{F4}"
and didn't work too