ChrisL Posted October 21, 2005 Share Posted October 21, 2005 Could someone please tell me how to get a list of com ports on a W2K PC. I need to find a specifically named port and then find its com port number. I don't know how to find it, I tried the registry which has numbered keys but they don't follow that they are the com port number.. Any help appreciated. Thanks Chris [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
flyingboz Posted October 21, 2005 Share Posted October 21, 2005 Could someone please tell me how to get a list of com ports on a W2K PC.I need to find a specifically named port and then find its com port number. I don't know how to find it, I tried the registry which has numbered keys but they don't follow that they are the com port number..Any help appreciated.ThanksChrisHKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
ChrisL Posted October 21, 2005 Author Share Posted October 21, 2005 HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMMThat kind of helps, thanks.. but how does the information there link in with the description in Device manager/com ports [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
flyingboz Posted October 21, 2005 Share Posted October 21, 2005 That kind of helps, thanks.. but how does the information there link in with the description in Device manager/com portsuh..It's how there is a tab there that says communications port (comx)Try deleting the entry and find out for sure Seriously, the answer to the question you asked is to enumerate the keys of these ports. If your realproblem is something else, a better problem description would be in order. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
ChrisL Posted October 21, 2005 Author Share Posted October 21, 2005 (edited) uh..It's how there is a tab there that says communications port (comx)Try deleting the entry and find out for sure Seriously, the answer to the question you asked is to enumerate the keys of these ports. If your realproblem is something else, a better problem description would be in order.It was that the device in the registry seems very non descript.If a specific device is installed on the computer I need to write to an ini file the location of the hardware.This would be fine but it would assume that this device always has the value VCP0, but what if there was another USB serial port then it could be VCP1, VCP2 etc..In device manager there is more of a descriptionI guess I need to know what com ports there are and what device has been assigned to what com port, but without using the windows gui..I hope that makes it clearer..Thanks Edited October 21, 2005 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now