Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want to verify which kind of drive
Message
From
14/05/1997 01:23:47
 
 
To
13/05/1997 22:40:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00031952
Message ID:
00032118
Views:
44
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform