linkd 为windows2003使用 下载地址:
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
mklink为wind7使用
linkd用法:
C:\>linkd

Links an NTFS directory to a target valid object name in Windows 2000.

LINKD Source [/D] Destination

Source

l       Displays the Windows 2000 name targeted by Source

Source Destination - Links source directory to Destination directory or a

Windows 2000 device or any valid Windows 2000 name

Source /D

l       Deletes Source, regardless of whether a link exists at

source

/?

l       Prints this help message

LINKD grafts (links) the target name directly into the name space at Source, so that Source subsequently acts as a name space junction. The Source directory must reside on a disk formatted with NTFS in Windows 2000. The destination (the target of the link) can be any valid directory name or device name or valid object name in Windows 2000. When the target name does not resolve to a directory or a device, open calls fail.

All characters in both the Source and Destination names must be in the ASCII character set. Usage of arbitrary Unicode characters is not supported.

Type “LINKD /? | more” if you need to see all the help text

实例:

1。将附件中的linkd.exe考备到系统目录C:\windows\system32下,这时你就可以在CMD窗口使用该命令了。

2。建立两个文件夹:

c:\demo\source

c:\demo\destination

3。使用linkd将以上两个文件夹链接,可在CMD窗口输入如下命令:

linkd c:\demo\source c:\demo\destination

如链接成功,则会显示“Link created at: c:\demo\source”字样。

4。链接成功后,你在source或destination中任一文件夹做操作,另一文件夹将会发生同样的改变。

5。删除链接也比较简单,可在CMD窗口输入如下命令:

linkd c:\demo\source /d

注:

a)源文件夹必须为NTFS,我还有没试过将NTFS中的文件夹link到FAT中的文件夹。

b)Windows XP是支持linkd的

c)linkd只支持本地硬盘(还不是很确定):$
mklink具体操作步骤
我的帐户名是Tenkin,vista安装在F盘,我要把"F:\Users\tenkin"变成链接文件夹,而我真正的用户文件夹转移到"E:\tenkin"。 第一步:注销,用administrator帐户登录(没有启用administrator帐户的打开计算机管理-用户和组-administrator-去掉已停用复选框); 第二步:把"F:\Users\tenkin"移动到"E:\tenkin"; 第三步:运行cmd,输入 mklink "F:\Users\tenkin" "E:\tenkin" /j(注意:如果路径中包含空格,请务必把路径加上引号,如果没有空格,引号可省略)得到下图提示,表示链接成功:

  第四步:赋予移动后的用户文件夹完全控制权(关于如何设置权限,这里不再说明,相信大家都知道如何设置):

  重新登录到你原来的帐户,发现你的用户文件夹下多了一个快捷方式的图标,链接成功。

  不建议在vista以前的系统这样做,因为nt5系统并不完全支持这个功能,会导致一个问题,就是你无法删除链接文件夹中的子文件夹,提示拒绝访问,你只能从原始文件夹中删除 关于如何使用mklink,你可以输入mklink /?查询用法。