|
-
Oct 30th, 2007, 10:02 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Enumerate existing drives
Hello guys!
I would like to know how can I get the letter of all drives existing in a computer and how can I distinguish hard drives from cd-roms, etc...
Thank you.
-
Oct 30th, 2007, 10:15 AM
#2
Lively Member
Re: Enumerate existing drives
you can do it with the drivelist ocx.
Code:
for i=0 to drive.listcount-1
list1.add drive.list(i)
next
-
Oct 30th, 2007, 10:21 AM
#3
Thread Starter
Hyperactive Member
Re: Enumerate existing drives
Ok, your solution is valid but not in my case. I'm doing a dll.
Thank you anyway.
-
Oct 30th, 2007, 10:55 AM
#4
Frenzied Member
Re: Enumerate existing drives
-
Oct 30th, 2007, 11:05 AM
#5
Re: Enumerate existing drives
Both of your links involve using a Listbox. Based on this
 Originally Posted by RS_Arm
Ok, your solution is valid but not in my case. I'm doing a dll.
I'm assuming that you do not want these loaded into any kind of control, would that be right?
If so, how would you want your Dll to return them to you?
-
Oct 30th, 2007, 11:14 AM
#6
Thread Starter
Hyperactive Member
Re: Enumerate existing drives
I'm ashamed.
That really works. That's what I was looking for.
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|