Get Windows drive letters and other file system roots
Updated 1 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 (2024). GetDrives (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Search Path in Help Center and MATLAB Answers

Inspired: Dicom Operator - EsmeProcess

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license

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