Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DriveType() returns wrong result
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01265298
Message ID:
01265302
Vues:
15
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform