Log in

View Full Version : [Delphi] Listing System's drives in a ListBox??


Rami
18-08-2005, 03:33
Hello every body, new to this forum as you can see :D
- 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:
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 :confused:

Cory
18-08-2005, 03:41
Sorry to disappoint you, but this forum isn't for the Delphi programming language, but rather FIRST robotics.

Here's a thread that may be of use to you: http://www.chiefdelphi.com/forums/showthread.php?t=29944

mechanicalbrain
18-08-2005, 03:47
But we would love to have you stick around. We do robotics in a competition called FIRST take a look around and see if your interested! :D