- May
- 382
- 2
Unlike MKLNK, MKLINK /J does not automatically replace the relative path of a junction target with an absolute path. This results in an invalid junction. Possible work-arounds: applying @FULL to MKLINK's target; using MKLNK instead of MKLINK /J.
JPSoft could classify this issue as either WAD or bug.
JPSoft could classify this issue as either WAD or bug.
Code:
0>c:\temp
0>mkdir ddd
0>mklink /J ddd-mklink .\ddd
Junction created for ddd-mklink <<===>> .\ddd
0>dir /k /m ddd-mklink
TCC: (Sys) The system cannot find the file specified.
"C:\temp\ddd-mklink\*"
0>mklnk .\ddd ddd-mklnk
C:\temp\ddd-mklnk -> C:\temp\ddd
0>dir /k /m ddd-mklnk
1/03/2013 16:39 <DIR> .
1/03/2013 16:39 <DIR> ..
0>dir /k /m ddd*
1/03/2013 16:39 <DIR> ddd
1/03/2013 16:40 <JUNCTION> ddd-mklink [.\ddd]
1/03/2013 16:39 <JUNCTION> ddd-mklnk [C:\temp\ddd]
0>ver
TCC 14.03.53 Windows 7 [Version 6.1.7601]