MKlink question


  1. Posts : 83
    Windows 10 Pro
       #1

    MKlink question


    I am Using Windows 10 Build 19592.1001, 2004.
    I am using mklink C:\windows\BAtc*s \ fred d:\app********\fred\sam <---do I have to create this directory or will it be created? John
      My Computer

  2. Try3's Avatar
    Posts : 7,439
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #2

    Perhaps this tutorial answers your question
    MKLINK – Create and Use Links - SevenForumsTutorials

    Denis
      My Computer

  3. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
       #3

    Hello John,

    In addition, the tutorial below can help provide more details on this.

    The first path for "Link" in the mklink command will get created by the command.

    The second path for "Target" in the mklink command is for the existing folder you want to link to.

    Create Soft and Hard Symbolic Links in Windows
      My Computers


  4. Posts : 83
    Windows 10 Pro
    Thread Starter
       #4

    The second part of the mklink has to be a folder that exists


    Mklink doesn't create a directory if it's left out of the target? I have to make that directory?
      My Computer

  5. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
       #5

    Correct. You will have to create the "Target" location if it doesn't already exist.
      My Computers


  6. Posts : 83
    Windows 10 Pro
    Thread Starter
       #6

    Create Soft Symbolic Link Pointing to Directory in Command Prompt, <---TUTORIAL

    MKLINK /J "C:\Program Files (x86)\NCH Software\ClassicFTP" "E:\Utilities\NCH\FTP\ClassicFTP"


    tHIS IS WHAT SYMLINK CREATOR SHOWED TO MAKE A HARD LINK

    NAME:CLASSIC FTP
    LINK:"E:\Utilities\NCH\FTP\ClassicFTP"

    BUT I GET: CANNOT CREATE A FILE THAT ALREADY EXISTS!
    Should I switch c:\Program files(x86) and the E:\utilities line?
    thank you
    john
      My Computer

  7. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
       #7

    RBCC said:
    Create Soft Symbolic Link Pointing to Directory in Command Prompt, <---TUTORIAL

    MKLINK /J "C:\Program Files (x86)\NCH Software\ClassicFTP" "E:\Utilities\NCH\FTP\ClassicFTP"


    tHIS IS WHAT SYMLINK CREATOR SHOWED TO MAKE A HARD LINK

    NAME:CLASSIC FTP
    LINK:"E:\Utilities\NCH\FTP\ClassicFTP"

    BUT I GET: CANNOT CREATE A FILE THAT ALREADY EXISTS!
    Should I switch c:\Program files(x86) and the E:\utilities line?
    thank you
    john
    Hello John,

    This will be like using option 4 below.

    mklink /j "Link" "Target"

    Create Soft and Hard Symbolic Links in Windows

    You would get this error message if the Link path already exits.
      My Computers


  8. Posts : 83
    Windows 10 Pro
    Thread Starter
       #8

    So if the link is c:\progran files (x86)\ NCH software and the target is the one above. How do I get this to work? Do I erase the c:\program files(x86)\NCh Software folder? John

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?
      My Computer

  9. Brink's Avatar
    Posts : 56,295
    64-bit Windows 10 Pro for Workstations build 21359
       #9

    RBCC said:
    So if the link is c:\progran files (x86)\ NCH software and the target is the one above. How do I get this to work? Do I erase the c:\program files(x86)\NCh Software folder? John

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?

    - - - Updated - - -

    Should I delete the link folder? Or how do this without delete it?
    Basically, you would want "Target" to be the original location, and "Link" to basically be the shortcut pointing (mklink) to the target. Essentially, just like creating a normal shortcut, but mklink bonds them.

    First, make sure you have the correct "Target" and "Link" for what you want.

    If needed, you could either delete or rename the current "Link" so it can be created by mklink to point to your specified "Target".
      My Computers

  10. NavyLCDR's Avatar
    Posts : 15,508
    Windows 10 Pro
       #10

    RBCC said:
    Create Soft Symbolic Link Pointing to Directory in Command Prompt, <---TUTORIAL

    MKLINK /J "C:\Program Files (x86)\NCH Software\ClassicFTP" "E:\Utilities\NCH\FTP\ClassicFTP"


    tHIS IS WHAT SYMLINK CREATOR SHOWED TO MAKE A HARD LINK

    NAME:CLASSIC FTP
    LINK:"E:\Utilities\NCH\FTP\ClassicFTP"

    BUT I GET: CANNOT CREATE A FILE THAT ALREADY EXISTS!
    Should I switch c:\Program files(x86) and the E:\utilities line?
    thank you
    john
    You need to create the folder E:\Utilities\NCH\FTP\ClassicFTP
    Then you need to move all the files and subfolders from C:\Program Files (x86)\NCH Software\ClassicFTP to E:\Utilities\NCH\FTP\ClassicFTP

    Then once C:\Program Files (x86)\NCH Software\ClassicFTP is completely empty, you can run the MKLINK command. If it still fails with the same error message, you might have to actually delete the empty ClassicFTP folder on C: drive.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:02.
Find Us




Windows 10 Forums