[]windows Soft link creation and deletion

Source: Internet
Author: User

[]windows Soft link creation and deletion

Http://blog.chinaunix.net/uid-74941-id-3764093.html

1. Creating examples

    1. # #建立d:Develop link directory, which points to the corresponding directory of the E disk on the remote destination server.
    2. Mklink /d: \develop \\138.1.141\e$\develop

    3. # #建立d:Develop link directory, which points to the corresponding directory of the E disk on the remote destination server.
    4. Mklink /d: \recivefiles \\138.1.141\e$\recivefiles


2. Delete Example

    1. #删除虚拟的链接目录, does not delete the remote folder real files, note that you must not use Del,del will delete the remote real files.
    2. RmDir d: \recivefiles
    3. RmDir d: \develop


3. Supplemental Mklink Usage

Click ( here) to collapse or open

  1. C: \users\joshua>mklink
  2. Creates a symbolic link.

  3. MKLINK [[/D] | [/H] | [/j]] Link Target

  4. / D creates a directory symbolic link. Default is a file symbolic link.
  5. /H creates a hard link instead of a symbolic link.
  6. /j creates a Directory Junction.
  7. link Specifies the new symbolic link name.
  8. Target Specifies the path (relative or absolute) that is thenew link refers to.

Command format: mklink/d (definition parameter) \mydocs (link file) \users\user1\documents (original file)
/d: Establish symbolic links for directories (symbolic link)
/j: Creating a soft link (join) for a directory (junction)
/h: Create a hard link to a file

[]windows Soft link creation and deletion

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.