Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if a drive is a CD-ROM?
Message
 
To
10/03/2000 11:10:55
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00344236
Message ID:
00344262
Views:
22
Al,

If your file name, including the drive letter is in a variable such as cFileName, use the following line of code to determine if it is a CDROM drive:

IF DRIVETYPE(cFileName) = 5
* It is a CD ROM Drive so do what you want
ENDIF

You can look at the FoxPro help for a list of the other drive types.

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform