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.
Printable View
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.
you can do it with the drivelist ocx.
Code:for i=0 to drive.listcount-1
list1.add drive.list(i)
next
Ok, your solution is valid but not in my case. I'm doing a dll.
Thank you anyway.
Google is still the best resource :thumb:
http://support.microsoft.com/kb/q291573/
http://vbnet.mvps.org/index.html?cod.../drivetype.htm
:wave:
Both of your links involve using a Listbox. Based on thisI'm assuming that you do not want these loaded into any kind of control, would that be right?Quote:
Originally Posted by RS_Arm
If so, how would you want your Dll to return them to you?
I'm ashamed. :blush:
That really works. That's what I was looking for.
Thank you.