Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local drives
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00041719
Message ID:
00041924
Views:
32
Bela,

There are a couple of Windows API calls (one of which can be called through FOXTOOLS) that can help you determine what drives are available and their type. The declare for the first one is:

DECLARE INTEGER GetLogicalDrives IN Win32API

This will return a 32 bit integer. You can use the BITTEST() function to test to see if a particular drive exists. For example,

lndrives = GetLogicalDrives()
IF BITTEST(lndrives, 0)
* There's an A: drive
ENDIF

To determine the type you can use:

DECLARE INTEGER GetDriveType IN Win32API;
STRING lpRootPathName

or the DriveType function in FOXTOOLS. Look in the FOXTOOLS help file for the parameter descriptions and return values for these.

HTH,

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform