Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard drives
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00529293
Message ID:
00529298
Views:
12
This message has been marked as the solution to the initial question of the thread.
>Hi,
>sorry to ask... I think I've already read a thread about this... but I can not use search options... so if someone can help me...
>
>How do I know how many fixed drives has a machine? and their letter..
>
>sorry again.
>fabian

Look into DriveType command I use it to find the users CD drive:
* This method will return a string of all letters that DRIVETYPE function indicates are
* CD ROM drives.  The calling program then needs to check for empty string or multiples
*
LOCAL lcCDDrives, lcLettersToCheck, i
lcCDDrives = ""
lcLettersToCheck = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
i = 0
FOR i = 1 TO 26
  IF DRIVETYPE(SUBSTR(lcLettersToCheck,i,1)) = 5
    lcCDDrives = lcCDDrives + SUBSTR(lcLettersToCheck,i,1)
  ENDIF
ENDFOR

RETURN lcCDDrives
You could do a variation to find valid hard drives.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform