Saturday, April 2, 2016

Using mountvol to assign drive letters that aren't letters

A few days ago, I noted that the subst command can create "drives" that are identified with any symbol, not just a letter. Of course, subst can only add alternate identifiers for already-lettered drives or folders. I thought that those symbols were just an illusion created by the command prompt.

It turns out that mountvol can assign any symbol to a volume, so you can legitimately have as many partition "letters" as you want. Also, programs that are not the command prompt can get into such drives. For instance, notepad -:\file.txt works perfectly fine from the Run dialog. (Of course, the Open dialog, which is essentially a mini Explorer, can't navigate in such directories, and won't even allow the direct typing in of a filename under such a drive - it thinks the name is not valid.)

No comments:

Post a Comment