While playing with MCU/MPU boards, rather than check device manager everytime, we need a easier method to get known which serial ports are currently exist/available...yes, especially when we worked with a USB serial cable/converter, as their port number always changed from time to time :(
This can be done with a simple command:
reg query HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
And, if you want do this with just one mouse click, you can just make text file with content:
reg query HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM
pause
Save it, and rename it as a '.bat' file, such as 'SerialCheck.bat'.
Then, every time when you click on it, a cmd window will give you the information as following:
