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:
00529530
Views:
12
Thanks to you, George, Bret and Mark. I now have something to put in our common library :)

>Nadya,
>
>
>* listdrives.prg
>local oFs, oDrive, oDrives, lcName
>
>oFS = CreateObject("Scripting.FileSystemObject")
>oDrives = oFS.Drives
>For Each oDrive in oDrives
>	lcName='?'
>	if oDrive.DriveType = 3 Then
>		lcName = oDrive.ShareName
>	else
>		if oDrive.isready
>			lcName = oDrive.VolumeName
>		endif
>	endif
>	? oDrive.DriveLetter, lcName
>endfor
>
>
>Hugo
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform