Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine local drive letter?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00259820
Message ID:
00260117
Views:
18
>>I am working on a small app that is to reside on a network. When the user runs the app, they select the types of information they need and based on this various tables and other files are to be copied to a directory on the users local drive. How do I determine what the local drive letter is?
>
>Which one? There can be more than one, and the user should be asked which to use IAC. The DriveType() function should let you test the drive type easily; it is part of VFP6, and was part of FoxTools before that.

This was my thought exactly. I couldn't just assuime C:. George directed me to the DRIVETYPE() function and using it and the DIRECTORY() function in a loop (because a certain directory has to exist) solved the problem. Thanks.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Reply
Map
View

Click here to load this message in the networking platform