Code covered by the BSD License  

Highlights from
GetDrives

4.4

4.4 | 5 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.04 KB File ID: #1082

GetDrives

by Robert Gilmore

 

21 Nov 2001 (Updated 02 Jun 2009)

Get Windows drive letters and other file system roots

| Watch this File

File Information
Description

List the drive letters on your Microsoft Windows computer. On UNIX (including Macintosh) it returns simply "/," the root of the single filesystem.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
23 Feb 2002 Mr Gadget

Great utility from which you can write some powerful programs...

24 May 2002 Kevin Meyer

WOW this is great! You just saved me a week of work! Now I can go home!

25 Mar 2003 Vlad Cozma

I was in desperate search for this thing.

25 Mar 2003 Vlad Cozma

But how can I get the directory of a file or the current file's directory?

07 Sep 2004 Srinivas Rachakonda

Thanks for giving a valuable function.

16 Feb 2006 Jan Hoeft

Nice tool, but gives warnings about the "FOR loop index with character".

Please login to add a comment or rating.
Updates
02 Jun 2009

Short-circuit on non-Windows platforms. Code cleanup and copyright update.

Tag Activity for this File
Tag Applied By Date/Time
path Robert Gilmore 22 Oct 2008 06:39:29
directories Robert Gilmore 22 Oct 2008 06:39:29
files Robert Gilmore 22 Oct 2008 06:39:29
windows drive Robert Gilmore 22 Oct 2008 06:39:29
letter Robert Gilmore 22 Oct 2008 06:39:29
file system Robert Gilmore 22 Oct 2008 06:39:29
filesystem Robert Gilmore 22 Oct 2008 06:39:29

Contact us at files@mathworks.com