Site hosted by Angelfire.com: Build your free website today!

getdrives

PURPOSE ^

GETDRIVES Get the drive letters of all mounted filesystems on the computer.

SYNOPSIS ^

function ret = getdrives(varargin)

DESCRIPTION ^

GETDRIVES  Get the drive letters of all mounted filesystems on the computer.
   F = GETDRIVES returns the roots of all mounted filesystems on the computer
   as a cell array of char arrays.  For UNIX this list consists solely of the
   root directory, /.  For Microsoft Windows, it is a list of the names of all
   one-letter mounted drive letters.
   F = GETDRIVES('-nofloppy') does not scan for the a: or b: drives on
   Windows, which usually results in annoying grinding sounds coming from
   the floppy drive.
   F = GETDRIVES('-twoletter') scans for both one- AND two-letter drive
   names on Windows.  While two-letter drive names are technically supported,
   their presence is in fact rare, and slows the search considerably.

   Note that only the names of MOUNTED volumes are returned.  In particular,
   removable media drives that do not have the media inserted (such as an
   empty CD-ROM drive) are not returned.

   See also EXIST, COMPUTER, UIGETFILE, UIPUTFILE.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004