Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Available Drives
Message
From
22/10/2003 11:21:14
 
 
To
22/10/2003 11:06:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00841069
Message ID:
00841077
Views:
46
This message has been marked as the solution to the initial question of the thread.
Hi, Russel.

>I would like to populate a list with the drive letters of availble disk drives and shared drives. Is there a way to do this?

Use Windows Script Host:
oFileSys = CreateObject("Scripting.FileSystemObject")

for each oDrive IN oFileSys.Drives
   ? oDrive.DriveLetter
next
Take a look at the other properties of oDrive on Intellisense. They contain useful information.

Hope this helps,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform