windows - fsutil hardlink doesn't work? -


I was looking for a way to create hard links under Windows and found this page:

To try it, I have created the file (1.txt) on my C root: Drive with 100 lines of the following content:

C: \ 1.txt (2.598 bytes):

  test exam test exam  

Then I command prompt and typed:

  create fsutil hardlink C: \ 2 breakthrough, 2 Txt was created, but when i see it to know This is exactly 2.598 bytes in size and it also saw some weird behavior (as far as I understand, if I remove 2.txt (hard linked file) then 1.txt can not be removed, and Contrast.  
  • If I open 1.txt (the original file) after removing 2.txt content is still the same.
  • How to get rid of command coded command Makes different? And how can I create a true hard link under Windows?

    I use Windows XP SP 3 Received'm using, and my file system NTFS.

    This is actually a behavior that should have been. Do you really understand how hard work is done? Hard links are actually just a number of entries in the file system that reference the exact same file. If you create a hard link for the file and modify an example file, the second file appears with your changes because they refer to the same block of data on both the discs.

    When you delete one of the hard links, you are actually removing one of the file system entries, referring to that file. Unless you delete all of your hard link (including the original one), the file is not deleted. After you remove 1.txt, 2.txt still exists and refers to the same file that was originally there, only now that reference of that file is only a file system entry (i.e., 2.txt ). 2.txt is that file.


    Comments

    Popular posts from this blog

    python - Overriding the save method in Django ModelForm -

    html - CSS autoheight, but fit content to height of div -

    qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -