Misplaced Pages

SUBST

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Draicone (talk | contribs) at 05:52, 29 June 2006 (Addition of DOS command details). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 05:52, 29 June 2006 by Draicone (talk | contribs) (Addition of DOS command details)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Are you looking for Misplaced Pages:Template substitution?

DOS Command 'subst'

subst is a DOS command used for substituting paths on physical and logical drives as virtual drives. In the past it has been used for revealing hidden drives on security-tense PCs.

Usage

This is the description as output by DOS under XP:

Associates a path with a drive letter.
subst path]
subst drive1: /D
drive1:        Specifies a virtual drive to which you want to assign a path.
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.

This means that, for example, to map C:'s root to X: you would use subst X: C:\ at command line. Upon doing this, a new drive called X: would appear under 'My Computer'. The command subst is available in post-Win2k DOS command prompts.