writes:
Quote:>In FPW 2.5 is there a way to determine which drives are available on the
>current machine? I am creating a screen similar to the GETFILE()
>function and I would like to be able to select the drive as well as the
>directory/file.
FoxTools.fll contains a "DriveType()" function that will do that, but it's
not foolproof. It is supposed to return a numeric value based on the type
of drive, with the following list being the advertised responses:
0 = No type
2 = Floppy Disk
3 = Hard Disk
4 = Removable / Network Drive
However, I've found that it will also return:
3 = RAM drive
4 = CD ROM drive
So it makes it kind of tough to allow a user to choose a network drive for
his file output, when in fact that could be a CD drive instead. But the
thing I really love about this function is that it can properly identify
floppy and CD drives with NO disk installed, and in fact does not even
activate the drive motor.
HTH
Ralph Morse