Create a soft link in Windows

Create a soft link in Windows

Brief introduction

Have not encountered the following conditions,

  1. When the game project development, planning and resource separation of Fine Arts, hoping to integrate into the project at the same time, but do not want all mixed together
  2. Sometimes part of the resources will be put U disk or removable hard disk, the company hopes to be mapped to some other place
  3. ......

Often want to have a way specified directory can be mapped to a location on the other directory, you can not really copy a file, just visit the link to the soft way. Junction herein will aid of a tool to show one possible implementation of the embodiment.

PS: Use a soft link Junction can create the next boot or reboot still retain

statement

The contents of this article are personal summary from finishing, limited personal level, it is inevitable that some details for understanding errors and omissions, if you find something in the reading process, I hope you can correct me, but in part also refer to article other great God of the article, if the content of the article infringe on your rights, said he was very apologetic, you pointed out, I will modify as soon as possible.

If you reprint, please indicate the source.

Create a soft link (in Windows http://www.liyubin.com/articles/2019/05/29/1559103253049.html )

Create a way

  1. Download Junction

    Junction download from the Microsoft Download Center or download (from here click immediately )

  2. Select the desired version

    After downloading extract directly to the Junction.zip, it provides 32-bit and 64-bit versions, the current general equipment to 64 devices mostly, so here choose to use the 64-bit version, use this tool without having to install directly junction64.exe copy files to the directory you want to exist

  3. Junction arguments detailed

    Junction can not be run independently, it is required to use the batch command execution

    • Create a soft link

      Junction64 / Junction [-s] [-q] soft link to the target path of the source route

      among them:

      Junction64 / Junction: confirmation command used depending on the version chosen

      -s: represents the recursive subfolders

      -q: runs silently form, does not output any error messages

    • Delete soft links

      Junction64 / Junction -d soft link target path

  4. Junction usage

    Because Junction can not be run independently, it is necessary to use the command line to deal with, there are two main ways:

    • Use direct run cmd
    • Write bat file execution

    For the specific content of the batch is due, here is no longer over-interpretation, doubt can search or ask questions again

  5. Examples

    • The C disk "Windows" directory to create a soft link in the root directory of the D drive

      In the CMD command line Junction64 find the directory where the execution Junction64 -s D: \ Windows C: \ Windows to prompt as follows:

      16899816-1f3d609ac960d5da.png
      Junction Create

      It means creating success in D drive will be able to see all the contents of the C disk Windows directory and in the

    • Remove these soft links created

      Use Junction to create a soft link will be at the next boot or reboot still retains a soft link, you need to manually remove the can. Junction64 find the directory where the CMD command line, execute Junction64 -d D: \ Windows to prompt as follows:

      16899816-49228e72c6c2728d.png
      Junction Delete

      Indicate deleted successfully

Reference material

Guess you like

Origin blog.csdn.net/weixin_33779515/article/details/90858804