If the current machine recognises the concept of logical drives (some devices do not), then a list is returned, where each drive has the following format :
Where # is a drive letter : A, B, C ... .
See the code for the drives on the author's machine.
Static methods are not methods of an object - they are simply class functions or procedures available at any time.|
|Microsoft MSDN Links|
| Author links|
Buy Website Traffic at
Buy Proxies at
|A simple example|
Drives : Array of String;
i : Integer;
// Get the logical drives on this machine
Drives := System.IO.Directory.GetLogicalDrives;
// Display them
for i := 0 to Length(Drives)-1 do