Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DriveType() returns wrong result
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01265298
Message ID:
01265302
Views:
14
Rex,

VFP help for DRIVETYPE() is not entirely correct. Type 2 is not just a floppy but any drive with removable media like floppy, flash drive, thumb drive, etc. See EnumerateDrivesEx() function at http://www.berezniker.com/display/VFP/Enumerate+Available+Drives

>
>In Windows Explorer, my system shows two physical hard disk drives (C: and D:) and a DVD drive (E:) followed by four 'phantom' drives (F:, G:, H: and I:). When I plug in a RAM drive, it becomes J:, however DriveType('J') returns 2 - floppy drive.
>
>From the top DriveType() returns
>C - 3 (hard disk)
>D - 3 (hard disk)
>E - 5 (CD ROM)
>F - 2 (Floppy)
>G - 2 (Floppy)
>H - 2 (Floppy)
>I - 2 (Floppy)
>J - 2 (Floppy)
>
>Anybody else come across this problem or have a solution/workaround please?
>
>This also occurs on client computers with similar configurations.
>
>Regards...Rex
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform