Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want to verify which kind of drive
Message
De
14/05/1997 01:23:47
 
 
À
13/05/1997 22:40:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00031952
Message ID:
00032118
Vues:
42
Hi Nicolas,

I wrote the DriveInformation class. In the zip file you downloaded from the file section you will find a help file. Open it with Windows' help program. It contains a sample of code on how to use this class, as well as extensive info about all methods.

Basically, for your problem, this is what you need to do:
*-- Change DrivInf3 with DrivInf5 for Visual FoxPro 5.0
SET PROCEDURE TO DrivInf3 ADDITIVE
*-- Create the DriveInformation object for drive F.
*   Change the drive letter for other drives.
oDrive = CreateObject( "DriveInformation", "F")
*-- Please note that there are many other
*   methods not used in this sample code.
if oDrive.GetDriveType() = 5
   *-- This is a CDROM
else
   *-- This is not a CDROM
endif
*-- Release the object
oDrive.Release()
If you have any problems in using DriveInformation class, please let me know.

Vlad

>>>>>>I want to create a procedure that would verify if the information of the database it's stored in hard disk or in my CD-Rom.
>>>>>
>>>>>You may want to check DriveInformation class from the Files section.
>>>>
>>>>Yes, this is my first project at work, could you give me a help..
>>>
>>>I did, this utility is really powerful. It will give you all the information from a drive letter. See the Files icon and proceed with Class.
>>
>>
>>Thank You! It's very hepful!
>Michel, it's Nicolas again, i'm very grateful to you for your information, but i really want to know what kind of synthax do you use. If you have some code I will be gratefull to you if you sent me a text file, my e-mail is
> nrmonge@usa.net THANK YOU,MERCI SI TU PARLES FRANCAIS FAIT LE MOI SAVOIR.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform