DOS Commands: subst + label
goa103
Posted messages
4
Status
Member
-
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
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
On Windows 2000, for example, I use the command:
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:
By default, Windows uses the label of the original drive; if C: is named WINDOWS, the virtual drive is also named WINDOWS.
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.