DotNet-ListComPort Voir sur GitHub
Introduction
Un petit utilitaire pour invité de commande qui permet de facilement lister les noms, noms formatés et chemins des ports COM.
Cet outil a pour bût de faciliter cette tâche sans avoir à utiliser la commande mode
ou le Gestionnaire de périphérique.
Cette version du programme a completement été réecrit depuis le projet original PB-ListComPort en .NET 6.0 au lieu de PureBasic afin de ne plus utiliser de langage de programmation propriétaire.
Dépendances
● Windows
∘ Toutes architectures de CPU
● .NET 6.0
∘ Optionnel si vous utilisez les paquets "self-contained".
Améliorations
● Changement de PureBasic vers .NET 6.0.
● Amélioration de la logique interne du programme.
● Ajout de l'option -H/--short-help
.
● Support pour Windows ARM et ARM64.
● Support pour le lancement sans invité de commande.
Captures d'écran
Utilisation
[-h|--help] [-H|--short-help] [-n|--show-name-raw] [-P|--no-pretty] [-s|--sort]
[-S|--sort-reverse] [-t|--tab-padding] [-v|--version] [-V|--version-only]
Launch arguments:
-a, --show-all Display the complete port's name (Equal to '-dfn')
-d, --show-device Displays the port's device name
-D <str>, --divider <str> Uses the given string or char as a separator (Can be empty string !)
-f, --show-friendly Displays the port's friendly name
-h, --help Display this help text
-H, --short-help Display the short help text
-n, --show-name-raw Displays the port's raw name (See remarks section)
-P, --no-pretty Disables the pretty printing format (Equal to -D " ")
-s, --sort Sorts the port based on their raw names in an ascending order
-S, --sort-reverse Sorts the port based on their raw names in a descending order
-t, --tab-padding Use tabs for padding between the types of names (Overrides '-D')
-v, --version Shows the utility's version number and other info
-V, --version-only Shows the utility's version number only (Overrides '-v')
Formatage de sortie
└──> ${Raw name} => COM1
*┬> '-d' or '-f'
├──> ${Device name} => \Device\Serial1
└──> ${Friendly name} => Communications Port
*┬> '-d' and '-f'
└──> ${Friendly name} [${Device name}] => Communications Port [\Device\Serial1]
*┬> '-n' and '-d'
└──> ${Raw name} [$DeviceName] => COM1 [\Device\Serial1]
*┬> '-n' and '-f'
└──> ${Raw name} - ${Friendly name} => COM1 - Communications Port
*┬> '-ndf' or '-a'
└──> ${Raw name} - ${Friendly name} [${Device name}] => COM1 - Communications Port [\Device\Serial1]
*┬> '-ndfp' or '-ap'
└──> ${Raw name} ${Friendly name} ${Device name} => COM1 Communications Port \Device\Serial1
*┬> '-ndfD ";"' or '-aD ";"'
└──> ${Raw name};${Friendly name};${Device name} => COM1;Communications Port;\Device\Serial1
Paquets
??? (Single)
Lighter builds that only contain the exe and required licenses.
You will need to install the .NET 6.0 Runtime.
??? (Self-Contained)
Larger builds that contain the exe and the .NET 6.0 Runtime as well as the required licenses.
Installateurs MSI
Windows installers that contain the relevant "Self-Contained" build with an option to automatically update existing installations and add the program to the %PATH%.
The install location is %ProgramFiles%\NibblePoker\lscom\ and cannot be changed. (This will be possible in future releases)