View Single Post
  #1   Spotlight this post!  
Unread 18-08-2005, 03:33
Rami Rami is offline
Registered User
FLL #0005
 
Join Date: Aug 2005
Location: Lebanon
Posts: 1
Rami is an unknown quantity at this point
[Delphi] Listing System's drives in a ListBox??

Hello every body, new to this forum as you can see
- How can i list my computer's drives into a Listbox?
I can do this:
- Adding a Drive control and a List control and then type this code:
Code:
ListBox1.Items.Text := Drive1.Items.Text;
- But this way i'll have the result in the ListBox this way:
a:
c: []
d: [hassan]
e: [karim]
f: [media files]
g: []
h: []

- And i want it that way:

A:\
C:\
D:\
E:\
F:\
G:\
H:\

- Can any body help me