Main Site Documentation

SD volume case


#1

Probably a small thing, but still a nag. It seems volume labels (i.e. \SD) are case sensitive for things like CD. This is odd because rest of filesystem preserves case, but is case insensitive. Would this be MS issue or provider issue? tia


#2

Forget case I just want to see real volume names so I know which card/drive I’ve got plugged in. :stuck_out_tongue:


#3

Volume name would be nice. I use this as a workaround. Just create a txt file called “volume.info” (or whatever you like) on each sd card or thumb drive you have.

private string GetVolumeName()
{
    // \SD\volume.info contains name only.
    string vi = @ "\SD\volume.info";
    try
    {
        if (!File.Exists(vi))
            return null;
        using (var sr = new StreamReader(vi))
        {
            return ReadLineEx(sr); // ReadLine workaround method.
        }
    }
    catch
    { return null; }
}

#4

@ William I had no idea about that work around; thanks man!


#5

We will look into it.