Subst-a practical disk ing tool in Windows

Source: Internet
Author: User

What is SUBST?

SUBST (substitute), DOS command, used for path replacement, associate the path with the drive letter, is to treat a directory as a disk drive, but cannot be formatted.

With some tips, The SUBST command can also hide the drive, install special software, and run the simulated disc automatically. In addition, there is a command with the same name in Linux, which is used for the function to return the replaced string.

For advanced applications, see subst-Baidu encyclopedia.

Where is SUBST?

Substamp is an excellent command in dos. for windows, the executable file subst.exe is in the c: \ windows \ command folder,

Windows XP and later versions should be in the c: \ windows \ system32 folder,

The regular Chinese name should be "assign a drive letter command to the directory ".

Its function is to replace the path name with the disk drive letter, so that the drive letter is equivalent to the specified subdirectory path.

How to Use SUBST

SUBST syntax format: SUBST [drive letter] [path]

Example: subst w: C: \ workdir

Note that if the path contains spaces, SUBST uses the string after the space as the parameter. The solution is to enclose the path with quotation marks.

Example: subst w: "c: \ workdir TMP"

 

Since we have added the disk ing, SUBST also provides this function when we always need to delete the ing.

The syntax for deleting a ing is SUBST [drive letter]/d.

If we want to delete the W: \ disk ing added in the previous step, we can: subst w:/d.

Related Article

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.