Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding Communication Ports
Message
De
05/02/2008 02:07:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01289388
Message ID:
01289438
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>Is there anything available to find which Comm Ports are available or being used?
>
>Currently I use this DEVCON.EXE with this code, but it does not work in Vista.
>
>
>
>Set Memowidth To 200
>
>! devcon findall =ports > ports.txt
>Create Table Data\ports (portlist m(20))
>
>Append Blank
>Append Memo portlist From ports.txt Overw
>Modify Memo portlist Noedit && Display memo field again
>
>This.Parent.txtcomm_Port.SetFocus()

You might be able to adapt the code here: http://www.news2news.com/vfp/?example=308&function=15
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform