Bem, a Wikipedia menciona :
C:\>SUBST /? Associates a path with a drive letter. SUBST [drive1: [drive2:]path] SUBST drive1: /D drive1: Specifies a virtual drive to which you want to assign a path. [drive2:]path Specifies a physical drive and path you want to assign to a virtual drive. /D Deletes a substituted (virtual) drive. Type SUBST with no parameters to display a list of current virtual drives.
Assim, você pode associar caminhos a letras de unidade usando subst
. O software do comando SUBST Persistente (psubst) parece ser útil, e eles fornecem uma solução para executá-lo a partir da inicialização:
link
Inconstancy
However restart of a system destroys a virtual disk. What to do? A disk can be created after startup. But what to do, when a disk is needed on early steps of a startup? For example, to run services? There is system feature to start a virtual disk from the system registry:
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices] "Z:"="\??\C:\Documents and Settings\All Users\Shared Documents"
It is enough to create a text file with the extension
.REG
and run it. When the next starting up of a system, the virtual disk will be exist at logon. It needs to define a name of disk and path. Note that each backslash in the path is doubled.
No Windows, você pode executar o editor de registro da seguinte maneira:
- Iniciar »Executar ... (ou pressionar Win + R )
- Tipo:
regedit
- No Windows Vista e acima, o UAC será exibido, clique em "Sim" .