I wanted to create hardlinks to files on Windows Server 2003 and I stumbled upon the superuser question hardlinks on ntfs with windows. I tried mklink as one of the answers suggested and found that mklink isn't a standalone program but rather part of the cmd.exe command shell but was not implemented until later versions of the operating system.
I then tried the fsutil hardlink command and created the hard link as follows:
fsutil hardlink create c:\testfile.txt c:\temp\testfile.txt
which created the hardlink c:\testfile.txt pointing to c:\temp\testfile.txt.
When I edit c:\testfile.txt I notice that the file size and last modified time of c:\temp\testfile.txt would not immediately match; it would take a few minutes until it matched. Why would this be?
Also I noticed that when I do a "dir" or look at the link in Explorer that there is no indication it is a hard link. How do you subsequently know?
Secondarily: Before trying fsutil I tried linkd.exe which is part of the Windows Server 2003 resource kit. It appeared to create the link just fine but I would receive "Access Denied" whenever trying to edit the link. Any ideas why?