www.icetips.com  Icetips Utilities Documentation 11/14/2010    

File Class: EnumLocalDrives

Previous  Top  Next  


Prototype: (),LONG,PROC

 

ReturnsReturns number of logical drives.

 

This method enumerates all logical drives that are local to the computer.  This includes diskette drives, hard drives, CD/DVD drives, removable drives and remote mapped drives. 

 

Example:

ITF  ITFileClass

I    Long

ITF.EnumLocalDrives()

Loop I = 1 To Records(ITF.LocalDrives)

  Get(ITF.LocalDrives,I)

  ITF.ODS('Drive: ' & Clip(ITF.LocalDrives.RootPath) &|

          ', Type = ' & ITF.LocalDrives.DriveType    &|

          ': ' & ITF.GetDriveTypeString(ITF.LocalDrives.RootPath))

End

 

 

See also:

GetDriveType

GetDriveTypeString

 



Direct link to this page: http://www.icetips.com/manuals/utilities/enumlocaldrives_fileclass.htm