The following is nothing to do with where the mouse is when the command is issued, as that should be irrelevant. As the command specifies what to close.
I would like to have a command that will close particular windows.
For the command prompt, no problem, I know.
taskkill /f /im cmd.exe windows
For charmap.exe ditto.
Now for closing the windows of another taskbar icon, from the command line..i've provided a screenshot of the windows i'd like to close.
Is there a command that would do it?
Any time I see those there, so maybe a unique hex id would only work that one time, and if it were window titles that's ok and better but not ideal because really I want to close windows associated with particular taskbar icons.