13.0.31 2 MKLINK TCC vs CMD issues

May 31, 2008
382
2
#1
Two issues:
1. TCC MKLINK sets error level 1 while it should be 0. Bug?
2. TCC MKLINK without /D creates a folder link while it should be a file link for compatibility with CMD.
HTML:
[C:\temp]ver & mkdir aaa

TCC LE  13.01.31   Windows 7 [Version 6.1.7601]

[C:\temp]mklink ttt aaa & echo %_?
Symbolic link created for ttt <<===>> aaa
1

[C:\temp]mklink uuu aaa || echo ERROR
Symbolic link created for uuu <<===>> aaa
ERROR
  • right click ttt and select Properties; note Target Type = File Folder
  • help file says: /D Create a directory symbolic link. (The default is to create a file symbolic link.)
HTML:
[C:\temp]cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2010 Microsoft Corporation.  All rights reserved.

C:\temp>mklink vvv aaa || echo ERROR
symbolic link created for vvv <<===>> aaa
  • right click vvv and select Properties; note Target Type = File