0

On Windows 10, I wanted to map drive letters to local folders. I used subst initially, but then I found out that deleted files from the mapped drives would just disappear, rather than going to the Recycle Bin. I followed the instructions from Tony and others here, and got the mapped drives to work with the Recycle Bin, using a .reg file. Which is great. Thanks to everyone who contributed!

But I would also like to change the drive name, aka the drive label, on the mapped drives. Currently Windows just picks up the name of the root drive. For example, my C: drive name is "1TB SSD". I mapped the P: drive to C:\File Server\Photos, and I would like the P: drive label to be "Photos", but instead it shows up as "1TB SSD".

When I right click on the P: drive in windows explorer, and go to "Rename", I get the message "Invalid drive Label The volume label is not valid. Please enter a valid volume label." I don't get this error message when I rename the "real" drives (C: D: etc.), only when I try to rename the drives that were mapped from local folders.

I've googled around and tried several things. The latest was adding "VolumeLabel" to the registry entry. I was hopeful that that might do it, but no luck.

Here's what my mapping looks like in the .reg file:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]  
"P:"="\\??\\C:\\File Server\\Photos"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\\{GUID}]  
"RelativePath"="P:\\"  
"Category"=dword:00000004  
"Name"="PhotosN"  
"DefaultLabel"="PhotosD"  
"VolumeLabel"="PhotosV"  

I would greatly appreciate it if someone has an answer for this! :)

DavidPostill
  • 153,128
  • 77
  • 353
  • 394
  • Do the instructions in [What Is a Volume Label of a Drive?](https://www.lifewire.com/volume-label-2626045) work? – DavidPostill Jul 31 '22 at 07:06
  • @DavidPostill Good article, but no luck. Might work on root drives, but on mapped drives the labels didn't budge. 1 - Disk Management -- only the root drives show up, not the mapped drives 2 - File Explorer -- "The volume label is not valid. Please enter a valid volume label". 3 - Command prompt (as administrator): P:\>label P: Photos Access Denied as you do not have sufficient privileges or the disk may be locked by another process. You have to invoke this utility running in elevated mode and make sure the disk is unlocked. 4 - Registry change - no effect – Nathaniel Tanner Jul 31 '22 at 20:55

0 Answers0