1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

13.0.31 2 MKLINK TCC vs CMD issues

Discussion in 'Support' started by Stefano Piccardi, Nov 21, 2011.

  1. Stefano Piccardi

    Joined:
    May 31, 2008
    Messages:
    376
    Likes Received:
    2
    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
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    link

    I can't imagine why you would want a file link to a subdirectory. Did you
    really want that or are you complaining that TCC isn't duplicating a CMD
    bug?
     
  3. Stefano Piccardi

    Joined:
    May 31, 2008
    Messages:
    376
    Likes Received:
    2
    No, I didn't want a file link to a directory. And I didn't realize that creating one is a Microsoft bug. Maybe someone could actually use such a device.
     

Share This Page