I am creating a batch file to handle firefox tabs. I want to close the last tab in firefox using windows command.
I have tried this command using title name
taskkill /IM firefox.exe /FI "WindowTitle eq localhost*"
It closes all the window
I have searched in windows command, there are no direct way. Is there any possibilities ?