DOS Commands: subst + label

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

  • Votes
  • Date
  • Descending date
  1. 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.