Sideway
output.to from Sideway
Draft for Information Only

Content

MS DOS Command: SUBST.EXE
 Description
 Syntax
 Parameters
 Switch
 Related Command
 Remarks
  Using other commands with SUBST
  Valid drive1 values
  Using SUBST with Microsoft Windows
  Using SUBST with compressed drives
 Examples

MS DOS Command: SUBST.EXE

Reference from Microsoft MS-DOS cmd help

Description

Associates 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.

Syntax

SUBST [drive1: [drive2:]path] SUBST drive1: /D

To display the names of the virtual drives in effect, use the following syntax:

SUBST

Parameters

drive1: Specifies the virtual drive to which you want to assign a path.
drive2: Specifies the physical drive that contains the specified path (if different from the current drive).
path Specifies the path that you want to assign to a virtual drive.

Switch

/D Deletes a virtual drive.

Related Command

For information about increasing the number of available drive letters, see the LASTDRIVE command.

Remarks

Using other commands with SUBST

The following commands do not work, or should not be used, on drives used in the SUBST command:

ASSIGNDISKCOPYRECOVER
BACKUPFDISKRESTORE
CHKDSKFORMATSYS
DEFRAGLABELUNDELETE /S
DISKCOMPMIRROR

Valid drive1 values

The 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 Windows

Do 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 drives

You 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.

Examples

The 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 LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

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

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019