DECLARE INTEGER GetLogicalDrives IN Win32API lndrives = GetLogicalDrives() ? BITTEST(lndrives, 0)You can simply iterate through the bits using BITTEST() and any time it returns .T. add 65 to the bit value (0-25).
oFSO = CREATEOBJECT('Scripting.FileSystemObject') oDrives = oFSO.Drives FOR EACH oDrive IN oDrives ? oDrive.DriveLetter NEXT