Tuesday 26 September 2017

windows - Editing the hardlink doesn't edit the original file

I have a file at D:\JavaScript\CheckIban.js, and I want to reuse it in many places without duplicating it. Because when I fix a bug (change its content) I need that change to be propagated to all files. Using links my plan is to change one instance of the hardlinks, and expect other instances to be updated automatically.


Now, let's say that I've create a hardlink to this file using:


mklink /H D:\Projects\Crm\Site\Scripts\CheckIban.js D:\JavaScript\CheckIban.js


and I get the success message that the hardlink is created for ...


However, when I open each file and change it, the content of the other file is not changed. What do I miss here?


Notes: I can't use soft links, because I'm using a program (TFS) that doesn't support working with soft links.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...