macOS (tested on 10.11.6):
sudo lsof -i :80
…where ’80’ is the port you’re curious about (substitute any value)
Thanks to Databasically.
Windows (tested on 10 Pro version 1709):
…this will produce a list of ports in use and the PIDs using them)
Thanks to @RickVanover.
This is probably a good argument to just ditch Windows Batch (.bat) files entirely for Windows Powershell scripts, but if you find yourself in a position where this is not feasible, see this Stack Overflow post about how to check the exit codes of programs run within Windows Batch files.
This is still a problem exhibited in Chrome 55 on the Mac (I know, I know, not the very latest available at this moment, but still, pretty new):
“I was prompted (the little up arrow on the wrench icon) to update yesterday (Sept 28 2012), so I did. Now when I open Chrome after shutting it down, it opens my last session. This is not what I want to happen. I have always set Chrome to open my home page on start. I have confirmed my setting is still set to open my home page. I did change the setting to something else and change it back, it didn’t help. Version 22.0.1229.79 m on Windows 7 Ultimate 64 bit”
1. Tap/click Start > Settings (gear icon) > Apps
2. Locate the app to uninstall and tap/click it.
3. Tap/click Uninstall
Note: Note: these instructions were written using Windows 10 Pro Version 1703 OS Build 15063.0. To see what version of Windows 10 you are using, select Start > Settings (gear icon) > About.