Results 1 to 6 of 6

Thread: [RESOLVED] Enumerate existing drives

  1. #1

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Resolved [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.

  2. #2
    Lively Member
    Join Date
    Nov 2006
    Posts
    77

    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

  3. #3

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    Re: Enumerate existing drives

    Ok, your solution is valid but not in my case. I'm doing a dll.
    Thank you anyway.

  4. #4
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: Enumerate existing drives

    IIF(Post.Rate > 0 , , )

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Enumerate existing drives

    Both of your links involve using a Listbox. Based on this
    Quote 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?

  6. #6

    Thread Starter
    Hyperactive Member RS_Arm's Avatar
    Join Date
    Mar 2007
    Location
    Planet Earth
    Posts
    282

    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
  •  



Click Here to Expand Forum to Full Width