Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Communication Ports
Message
From
05/02/2008 02:07:10
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01289388
Message ID:
01289438
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform