We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,803 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

USB Port References

How do I find the number of USB ports available, and what their references are.
Example there are 6 USB ports on my motherboard what code would I use to find their reference like, port 1 is called 0 and port 2 is called 1.
I want a user to select a designated port and save the selection to a config file so that whenever the user plugs in a removable diskdrive into that specific port a dialogue box will popup asking the user if they want to backup their designated folder (path will also be saved in config file) to that removable diskdrive.
I know how to do everything like copying the folder to the diskdrive and all that I just need a code snippet to find the system reference to the USB ports.

2
Contributors
4
Replies
2 Hours
Discussion Span
1 Year Ago
Last Updated
5
Views
Animal Mother
Light Poster
39 posts since Aug 2010
Reputation Points: 18
Solved Threads: 7
Skill Endorsements: 0

Here is a good reference I used when I did a small project with USB manipulation.

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8

I have not currently found any classes or declarations there that might help but I'll check tonight before I mark as solved.
Thanx for the reply though.

Animal Mother
Light Poster
39 posts since Aug 2010
Reputation Points: 18
Solved Threads: 7
Skill Endorsements: 0

I will do some research to see if I can find some other references for you.

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8

I have a class for RS232 still, but I don't think that will help you any. :P

EDIT

Or would it....

Does anyone know if RS232 API will work with USB?

They are both "serial" ports.

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.3107 seconds using 2.63MB