This class can be used to retrieve the list of active COM ports on Windows. It uses the mode command to retrieve the list of active communication ports. The list of active ports is returned in an array with the port names.