MKLink /H Example

IT Support Forum Forums Windows Windows 10 Applications MKLink /H Example


This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 3 years, 6 months ago.

  • Author
  • #1570


    MKLink /H creates a hard link to a file. Here is an example of how to use MKLink /H to create a hard link:

    mklink /H mylink.exe myfile.exe

    In the above example, mylink.exe is a hard link to myfile.exe. Myfile.exe is the file that you want to link to, this command creates mylink.exe in the current working directory.

    ❗ Note: You can’t do a hard link to a file on another drive. You can’t do a hard link to a folder, you can only create hard links to files.

    What is a hard link? A hard link is a type of shortcut that Windows sees as if it were the file you are linking to, rather than just a shortcut.

You must be logged in to reply to this topic.