5

I'm using subst to create virtual drive mapping to a working folder for ease of use (I can't use mklink as "secpol.msc" is disabled, or new-symlink as power script is disabled), the Volume of the virtual drive is set the same as the physical drive where the working folder belongs to. Is there a way to change the Volume of the virtual drive?

athos
  • 2,371

2 Answers2

2

As you suspected, Mount-Points always share the name of the root drive they are located on. Renaming often renames both. Apparently the registry can be temporarily modified if that suits your need.

A quick alternate could be NET USE. At least this takes the label of the folder you are mounting instead.

Ps. NET USE must point to a network share eg:

NET USE v: '\\localhost\c$\Temp'

^^ This will create a new V:\ drive called Temp ... assuming this folder exists (and the administrative share is available).

Hicsy
  • 355
1

just a little addition to the originally accepted answer :

NET USE v: '\\localhost\c$\Temp' /persistent:yes

(this will keep the mount even if pc restarted.)

NET USE v: /delete

(to remove the mount)

and if your system explorer is grouped by something,

then right click>remove grouping>set to none

set sorting to sort by>name

Toto
  • 19,304