quote
D:\temp>mklink /?
Create a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symlink. Defaults to file
symlinks.
/H Creates hard links, not symbolic links.
/J Creates a directory join.
Link Specifies the new symbolic link name.
Target specifies the path
(relative or absolute) referenced by the new link.
Create a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symlink. Defaults to file
symlinks.
/H Creates hard links, not symbolic links.
/J Creates a directory join.
Link Specifies the new symbolic link name.
Target specifies the path
(relative or absolute) referenced by the new link.
dirView results
quote
2011/05/17 14:05 <DIR> dir1
2011/05/24 13:07 <JUNCTION> dir2 [D:\temp\dir1]
2011/05/24 13:07 <SYMLINKD> dir3 [dir1]
2011/05/24 13:07 <JUNCTION> dir2 [D:\temp\dir1]
2011/05/24 13:07 <SYMLINKD> dir3 [dir1]
The result of dir2 and dir3 is the same. I don't have to worry about it for the time being. Just use one and it's OK.
quote
The current directory creates a link to the previous directory
mklink /D cocos2d ..\cocos2d
mklink /D cocos2d d:\cocos2d
mklink /D cocos2d ..\cocos2d
mklink /D cocos2d d:\cocos2d
For file direct, no parameter
mklink 1.txt d:\111.txt