>Dear all,
>
>At past, I use a third party class driveselect in my project which is a combobox list out the drives in the machine. By selecting the appropiate drive for data backup and restore. However, recently, I find some abnormal that the listing of drive is wrong that a: for floppy/ c: for USB flash drive.
>
>Do I have any alternative solution ?
Hi Ransome,
You can use Vfp's DriveType() function (or external tools like WSH or WMI)
Local i,c
FOR i = ASC('A') TO ASC('Z')
c = Chr(i)
? c,DRIVETYPE(c), DISKSPACE(c)
NEXT
hth
-Stefan