[]windows Soft link creation and deletion
Http://blog.chinaunix.net/uid-74941-id-3764093.html
1. Creating examples
- # #建立d:Develop link directory, which points to the corresponding directory of the E disk on the remote destination server.
- Mklink /d: \develop \\138.1.141\e$\develop
- # #建立d:Develop link directory, which points to the corresponding directory of the E disk on the remote destination server.
- Mklink /d: \recivefiles \\138.1.141\e$\recivefiles
2. Delete Example
- #删除虚拟的链接目录, does not delete the remote folder real files, note that you must not use Del,del will delete the remote real files.
- RmDir d: \recivefiles
- RmDir d: \develop
3. Supplemental Mklink Usage
Click ( here) to collapse or open
- C: \users\joshua>mklink
- Creates a symbolic link.
- MKLINK [[/D] | [/H] | [/j]] Link Target
- / D creates a directory symbolic link. Default is a file symbolic link.
- /H creates a hard link instead of a symbolic link.
- /j creates a Directory Junction.
- link Specifies the new symbolic link name.
- 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