easy to show all windows serialport contant vitrual port

example

Image text

~~~rs use comportlist::availableports; for idx in availableports(vec!["CNCPorts","Ports"]){ if let Some(ss) = idx.serial_number{

    println!("{}",ss);
}
if let Some(ss) = idx.product {
    println!("{}",ss);
}
if let Some(ss) = idx.manufacturer{
    println!("{}",ss);
}

} ~~~ you can easliy use by python too

pip install comportlist

~~~py import comportlist ll = ["Ports","CNCPorts"] c=comportlist.list_ports(ll) for idx in c: print(idx) ~~~