Microsoft DOS SCANDISKSETSETVERSETVER.EXESHARESHELLSHIFTSIZERSMARTDRVSMARTDRV.EXESORT.EXESTACKSSUBMENU Draft for Information Only
ContentMS DOS Command: SUBST.EXE
MS DOS Command: SUBST.EXEReference from Microsoft MS-DOS cmd help DescriptionAssociates a path with a drive letter. The drive letter you assign represents a virtual drive, because you can use the drive letter in commands as if it were a physical drive. Do not use the SUBST command when Windows is running. SyntaxSUBST [drive1: [drive2:]path]
SUBST drive1: /D
To display the names of the virtual drives in effect, use the following syntax: SUBST
Parameters
Switch
Related CommandFor information about increasing the number of available drive letters, see the LASTDRIVE command. RemarksUsing other commands with SUBSTThe following commands do not work, or should not be used, on drives used in the SUBST command:
Valid drive1 valuesThe drive1 parameter must be within the range specified by the LASTDRIVE command. If not, SUBST displays the following error message: Invalid parameter - drive1: Using SUBST with Microsoft WindowsDo not create or delete virtual drives using the SUBST command while Microsoft Windows is running. If you want to create or delete a virtual drive using the SUBST command, quit Windows, create or delete the virtual drive, and then start Windows again. Using SUBST with compressed drivesYou can use SUBST to associate a path on a compressed drive with a drive letter. However, the drive size and free space of the SUBST drive (for example, as reported by the DIR command) might not match the drive size and free space reported for the compressed drive. ExamplesThe following command creates a virtual drive Z for the path B:\USER\BETTY\FORMS: subst z: b:\user\betty\forms Now, instead of typing the full path, you can reach this directory by typing the letter of the virtual drive, followed by a colon, as in the following example: z: This example works only if you have included the line LASTDRIVE=Z in your CONFIG.SYS file to define Z as the highest letter that MS-DOS recognizes as a disk drive. For more information, see the LASTDRIVE command. ©sideway ID: 110700265 Last Updated: 7/30/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019