Hi David,
I send You this message again because I don't know if You receive it (I sant it to Evan Dely).
I use the following function:
FUNCTION GetVolumNum
LPARAMETERS driv_lett && The drive
DECLARE GetVolumeInformation IN WIN32API AS GetVolume;
STRING @DriveLett, STRING @VolumName, INTEGER VolumSize,;
INTEGER @VolumNumb, INTEGER @FileLen, INTEGER @SysFlags,;
STRING @FileType, INTEGER FileSystemLen
LOCAL m_drv, m_getdrv, nvolum, xxvolum, asd
DECLARE mm_plus[2]
mm_plus[1] = ":"
mm_plus[2] = "\"
FOR asd = LEN(driv_lett) TO 2
driv_lett = driv_lett + mm_plus[asd] && You must specify
NEXT &&the root directory
m_getdrv = SPACE(11)
nvolum = 11
xxVolum = 0
GetVolume(@driv_lett,@m_getdrv,11,@xxVolum,0,0,"",0)
RETURN xxVolum
HTH
Boris
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.