MATLAB: How to access names of external drive from path

foldersname

I need to access the name of an external hard drive from the path name (i.e. the name of the drive that is associated with the F:\ path) . Is this possible?

Best Answer

That's an OS command -- on Windows there's "VOL"
>> !vol
Volume in drive C is OS
Volume Serial Number is ...
>>