Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Creates a directory or file symbolic or hard link.
Syntax
mklink [[/d] | [/h] | [/j]] <link> <target>
Parameters
Parameter | Description |
---|---|
/d | Creates a directory symbolic link. By default, this command creates a file symbolic link. |
/h | Creates a hard link instead of a symbolic link. |
/j | Creates a Directory Junction. |
<link> |
Specifies the name of the symbolic link being created. |
<target> |
Specifies the path (relative or absolute) that the new symbolic link refers to. |
/? | Displays help at the command prompt. |
Examples
To create and remove a symbolic link named MyFolder from the root directory to the \Users\User1\Documents directory, and a hard link named Myfile.file to the example.file file located within the directory, type:
mklink /d \MyFolder \Users\User1\Documents
mklink /h \MyFile.file \User1\Documents\example.file
rd \MyFolder
del \MyFile.file