Windows xp Windows 2003:下載rktools工具箱.
或
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
命令示例:
linkd c:\source c:\destination
注意 c:\destination 要存在,命令執(zhí)行成功后就將source目錄連接到destination目錄下了啃炸,而數(shù)據(jù)實際存儲在destination中,但通過source和destination都能訪問到destination目錄下的內(nèi)容。
Windows7+? Windows2018+:
直接使用mklink命令洞就,具體使用方法如下:
Mklink
08/31/2016
2 minutes to read
Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8
Creates a symbolic link.
For examples of how to use this command, see Examples.
Syntax
Copy
mklink [[/d] | [/h] | [/j]]?
Parameters
ParameterDescription
/dCreates a directory symbolic link. By default, mklink creates a file symbolic link.
/hCreates a hard link instead of a symbolic link.
/jCreates a Directory Junction.
Specifies the name of the symbolic link that is being created.
Specifies the path (relative or absolute) that the new symbolic link refers to.
/?Displays help at the command prompt.
Examples
To create a symbolic link named MyDocs from the root directory to the \Users\User1\Documents directory, type:
Copy
mklink /d \MyDocs \Users\User1\Documents
來源:https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc753194(v=ws.11)