rtcomp
asked on
Get Drive Letters
How do I find out what drive letters are on ones computer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can get only the letters of the drives (w/o volume labels) by modifying the code as shown below:
For x = 0 To Drive1.ListCount - 1
Print Left$(Drive1.List(x), 1)
Next
For x = 0 To Drive1.ListCount - 1
Print Left$(Drive1.List(x), 1)
Next
ASKER
It's not that, I ended up excepted MikeP's answer right away
and didn't realize that you submeted a comment.
I like both of the codes.
and didn't realize that you submeted a comment.
I like both of the codes.
No problem man.
I submitted it in a comment since it is not possible to submit an answer when there is already an answer proposed (the question is locked).
If you would like to award me points by submitting another question, that will be great. If you don't, no problem.
Tip: You can increase the points of this question by an additional 100 points without submitting a new question.
Regards.
I submitted it in a comment since it is not possible to submit an answer when there is already an answer proposed (the question is locked).
If you would like to award me points by submitting another question, that will be great. If you don't, no problem.
Tip: You can increase the points of this question by an additional 100 points without submitting a new question.
Regards.
ASKER
It wasn't that. I accepted MikeP's answer right away and didn't notice any other remarks. Your code was better and they both did the same.
Yes, I understand rtcomp.
However, if you want to transfer the points you awarded to MikeP, to me, you can post a question in the EE customer service and request them to do so (only if you see that my code was better and the points had to be awarded to me). Otherwise, you can either post another question, or increase the points for this (current) question.
Thanks.
However, if you want to transfer the points you awarded to MikeP, to me, you can post a question in the EE customer service and request them to do so (only if you see that my code was better and the points had to be awarded to me). Otherwise, you can either post another question, or increase the points for this (current) question.
Thanks.
ASKER
I'll increase the points and accept the answer but do you know the API to get the logical drives.
If not, no prob.
This code will work, but I'll need to use a loop
If not, no prob.
This code will work, but I'll need to use a loop
Why do you need the API?
This code snipest is pretty short and very nice.
I probably have the API code but I have to check my archieve to see..., I'm not sure.
Why do you need to use a loop?
This code will give you all the drive letters. No loop is required.
Regards.
This code snipest is pretty short and very nice.
I probably have the API code but I have to check my archieve to see..., I'm not sure.
Why do you need to use a loop?
This code will give you all the drive letters. No loop is required.
Regards.
ASKER
Sorry about the double answer above, my browser was going hey wire on me.
Added 100 pts to question.
Added 100 pts to question.
Many thanks rtcomp.
Best regards.
Best regards.
ASKER
I'm making a menu prog. With this menu program I will install some software off a cd rom. Now I do not want to have the user to choose their multi-media drive. I want the program to get the drive letter and then procede with the install on it's own.
I could not really understand rtcom from your last comment...
Do you have a new problem or just you are expalining to me what you wanted to do with code?
Regards.
Do you have a new problem or just you are expalining to me what you wanted to do with code?
Regards.
ASKER
Just explaing the way the code is supposed to do.
thanks.
thanks.
Thank you rtcomp.
You are welcome.
You are welcome.
Didn't you like my code for the 'Default Browser' question?