image thumbnail


version (2.04 KB) by Robert Gilmore
Get Windows drive letters and other file system roots


Updated 01 Sep 2016

View License

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

Cite As

Robert Gilmore (2022). GetDrives (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Dicom Operator - EsmeProcess

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!