MKLink /H Example

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

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #1570
      Webmaster
      Keymaster

      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.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.