Esporta (0) Stampa
Espandi tutto
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Espandi Riduci a icona

Subst

Aggiornamento: aprile 2007

Si applica a: Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

Associates a path with a drive letter. If used without parameters, subst displays the names of the virtual drives in effect.

For examples of how to use this command, see Examples.

Syntax

subst [<Drive1>: [<Drive2>:]<Path>] 
subst <Drive1>: /d

Parameters

 

Parameter Description

<Drive1>:

Specifies the virtual drive to which you want to assign a path.

[<Drive2>:]<Path>

Specifies the physical drive and path that you want to assign to a virtual drive.

/d

Deletes a substituted (virtual) drive.

/?

Displays help at the command prompt.

Remarks

  • The following commands do not work and should not be used on drives that are specified in the subst command:

    chkdsk

    diskcomp

    diskcopy

    format

    label

    recover

  • The Drive1 parameter must be within the range that is specified by the lastdrive command. If not, subst displays the following error message:

    Invalid parameter - drive1:

Examples

To create a virtual drive Z for the path B:\User\Betty\Forms, type:

subst z: b:\user\betty\forms 

Instead of typing the full path, you can reach this directory by typing the letter of the virtual drive followed by a colon as follows:

z: 

Additional references

Il documento è risultato utile?
(1500 caratteri rimanenti)
Grazie per i commenti inviati.

Aggiunte alla community

AGGIUNGI
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2014 Microsoft