WINDOWS-SUBST command to create a virtual disk

Source: Internet
Author: User

650) this.width=650; "Name=" image_operate_93491334854262485 "title=" Windows <wbr>-<wbr>subst Command usage and description " alt= "Windows <wbr>-<wbr>subst command use with description" src= "http://rescdn.qqmail.com/zh_CN/htmledition/images/ Function/qm_open/ico_mailme_01.png "/>

1. The path of the command program:

C:\WINDOWS\system32\subst.exe


2. Instructions for use:

C:\Documents and Settings\administrator>subst/?

Associates a path with a drive letter.


SUBST [drive1: [Drive2:]path]

SUBST drive1:/d


DRIVE1: Specifies the virtual drive to assign the path to.

[Drive2:]path Specifies the physical drive and the virtual drive to be assigned to the

Path.

/d Delete the replaced (virtual) drive.


Type SUBST without any parameters to display a list of the current virtual drives.


3. Examples of Use:

First, create a virtual drive that is assigned to the destination path:

C:\Documents and Settings\administrator>subst Z:f:\qqdownload

Then, list the virtual drive inventory:

C:\Documents and Settings\administrator>subst

Z:\: = F:\QQDownload

Finally, delete the virtual drive that was replaced:

C:\Documents and Settings\administrator>subst Z:/d

Reference:

There's a command in the system to do this.
The most common way is to use the subst command, because the general computer comes with such a program. Here is the help for the subst command:
SUBST [drive1: [Drive2:]path]
SUBST drive1:/d
DRIVE1: Specifies the virtual drive to assign the path to.
[Drive2:]path Specifies the physical drive and the path to be assigned to the virtual drive.]
/d Delete the replaced (virtual) drive.
Type SUBST without any parameters to display a list of the current virtual drives.
Did you see that? If you want to set the "ABC" folder on the C drive as a virtual hard disk, the virtual hard disk has a drive letter of z and you can enter it at the command prompt:
Subst Z:C:\ABC
At this time, you can open my computer to the new B-drive.
If you want to delete the Z-disk you just created, you can enter:
Subst Z:/d

WINDOWS-SUBST command to create a virtual disk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.