DOS Commands: subst + label

goa103 Posted messages 4 Status Member -  
goa103 Posted messages 4 Status Member -
Hello,

I want to associate a path with a drive letter and then rename the label of that drive. However, I am unable to perform this operation using the DOS commands subst and label. The latter returns an error message Access denied..

Is it not possible to rename the label of a virtual drive?

JM

2 answers

SirHill Posted messages 4070 Status Contributor 543
 
Hello,

What is this reader and what is your OS?
0
goa103 Posted messages 4 Status Member 4
 
On Windows 2000, for example, I use the command:

subst W: C:\WINNT


After that, I have a W: drive pointing to the Windows directory. Then, if I use the following command to rename the label of the W: drive to W2K, I get an Access denied:

label W: W2K


By default, Windows uses the label of the original drive; if C: is named WINDOWS, the virtual drive is also named WINDOWS.
0