MKLINK – Create and Use Links in Windows

Page 8 of 16 FirstFirst ... 678910 ... LastLast

  1. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #70

    Same, nevertheless
      My Computer


  2. Posts : 925
    Windows 10 Pro
       #71

    C:\Windows>mklink C:\Users\....\....\....\....\.....\...\<individual file> C:\1
    The syntax of the command is incorrect.
    I tried mklink with both the link and target options, no success ?
      My Computer


  3. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #72

    Are you running in an elevated cmd?
      My Computer


  4. Posts : 5,656
    Windows 7 Ultimate x64 SP1
       #73

    I guess either what Kado has said or path has space in it.

    Can you copy paste exact command here?
      My Computer


  5. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #74

    JerometheGiraff said:
    C:\Windows>mklink C:\Users\....\....\....\....\.....\...\<individual file> C:\1
    The syntax of the command is incorrect.
    If this is the exact command you are entering, there's no doubt you'll get a syntax error.

    kado897 said:
    Are you running in an elevated cmd?
    It would say "You do not have sufficient privilege to perform this operation" if he hadn't.


    Here, Jerome, why not tell us where you want your symbolic link placed, also the target it should point to. Then we'll create the command line for you.
      My Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #75

    JerometheGiraff said:
    C:\Windows>mklink C:\Users\....\....\....\....\.....\...\<individual file> C:\1
    The syntax of the command is incorrect.
    I tried mklink with both the link and target options, no success ?


    A file link is a hard link. This from the tutorial:
    A Link can be so called Hard Link linking one file to a target file, or a Soft Link linking a folder to a target folder. Soft Links are also called Symbolic Links. Third link type is Junction, basically a hard link but as hard links can only link files we need to use junctions to link folders.
    Your mklink command has no switches, meaning that Windows thinks it is a symbolic link (a folder). To create a hard link you have to use the /H switch. Another error in your command, and this is quite a fundamental error, is that you have mixed the link and the target, switching their places.

    Here's an example of using the mklink to create a file (hard) link:
    • I have an ISO file W10TP_BUILD_10166_X64_EN-US.iso stored in E:\Users\Public\Downloads folder
    • I want to refer to this ISO file with a shorter link E:\Test.iso
    • The mklink command I have to give, with the /H switch to tell the system I will create a hard link, and link & target in correct places:
      Code:
      mklink /H E:\Test.iso E:\Users\Public\Downloads\W10TP_BUILD_10166_X64_EN-US.iso
    • The file (hard) link will now be created


    That's it.

    -2015-07-10_11h08_17.png

    Kari
      My Computer


  7. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #76

    It's far easier to use a GUI. This is the one I use. https://github.com/amd989/Symlinker
      My Computer


  8. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #77

    It's what you are used to use. I bet I can open the command prompt and type my command in the time I would need to start a third party tool and do the same.

    Screenshot in my previous post, I didn't need a full minute to open the command prompt, give the command and make a screenshot.
      My Computer


  9. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #78

    You are right of course Kari. It is what you are used to.
      My Computer


  10. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #79

    Kari said:
    Your mklink command has no switches, meaning that Windows thinks it is a symbolic link (a folder).
    Slight mistake there, Kari.
      My Computer


 
Page 8 of 16 FirstFirst ... 678910 ... LastLast

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

© Designer Media Ltd
All times are GMT -5. The time now is 01:19.
Find Us