Subst

Subst

subst is a command on the DOS operating system 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. The command subst is also available in post-Windows 2000 versions of the command line interpreter cmd.exe. [ [http://technet.microsoft.com/en-us/library/bb491006.aspx Microsoft TechNet Subst article] ]

Usage

This is the Command Prompt output under Windows XP:

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.

This means that, for example, to map C:'s root to X: one would use subst X: C: at the command line. Upon doing this, a new drive called X: would appear under the "My Computer" Virtual Folder in Windows Explorer.

Custom label

A custom label can be assigned to a drive letter created in this way only by way of the registry key:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIconsMDefaultLabel

"M" represents the drive letter to assign a custom label to.

To make Windows Explorer show the new label select the drive letter, select "rename" from the drive letter context menu or press F2, delete the existing name/selection and press enter.

Limitations

*It is important to note that not all Windows processes are able to use a drive letter created in this way.Fact|date=April 2008
*Since (at least) Microsoft Windows XP SP2 Autorun.inf files present in the new drive letter are not being used, AutoRun/AutoPlay does not work on drive letters created in this way.
*Since (at least) Microsoft Windows XP SP2 assigning a custom icon or label to the drive letter created this way via Autorun.inf does not work.
*Since (at least) Microsoft Windows XP SP2 a custom label assigned to the drive letter created this way only appears if the source drive/volume does not have a volume label set (check and set with command line tool "label.exe").

ee also

*Drive letter assignment
*List of DOS commands
*Virtual drive

References

External links

*http://www.ss64.com/nt/subst.html


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Subst — Subst  одна из команд операционной системы MS DOS для управления файловой системой. Предназначена для создания и удаления виртуального диска. Получаемый виртуальный диск предоставляет информацию из указанного каталога. Переключаясь на работу …   Википедия

  • subst — abbrev. 1. substantive 2. substitute * * * …   Universalium

  • subst- — Las palabras con este principio pueden escribirse indistintamente con y sin «b». Aunque las primeras son más fieles a la etimología, el uso culto actual prefiere, en general, las formas sin «b» …   Enciclopedia Universal

  • subst — abbrev. 1. substantive 2. substitute …   English World dictionary

  • Subst — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Substantif, un terme de linguistique. Substitut  SUBST peut être une commande externe du DOS …   Wikipédia en Français

  • subst. — 1. substantive. 2. substantively. 3. substitute. * * * abbrev 1. Substantive (grammar) 2. Substitute * * * subst., 1. substantive. 2. substitute. * * * abbr. ■ substantive …   Useful english dictionary

  • subst. — 1. substantive. 2. substantively. 3. substitute. * * * …   Universalium

  • Subst. — 1) Substitut EN assistant manager; substitute 2) Substanz EN substance …   Abkürzungen und Akronyme in der deutschsprachigen Presse Gebrauchtwagen

  • subst. — abbr. substitute …   Dictionary of English abbreviation

  • subst. — 1) gram. tex substantive 2) substantively 3) gram. substitute …   From formal English to slang

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”