Re: FSUTIL, hardlink not working




"Bertoldino" <finchelabarca@xxxxxxxxxxxxxxx> wrote in message
news:ehZN$HJQIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Pegasus (MVP) wrote:

Some of your commands are back to front. Try this little batch file:
@echo off
dir c:\ > c:\original.txt
fsutil hardlink create c:\linked.txt c:\original.txt
echo Viva l'Italia! >> c:\linked.txt
type c:\original.txt

gosh :-(
i've tried, they work perfectly and the problem is that they seem to be
identical to my instruction sequence (except for the command itself, you
used pipe commands with dir, i used direct input)

:-(

please help me understand ...
the sequence is:

create original file / test content

create hard link to the original file
write to the hard link
test content of the original file ; if content is updated, hardlink is
working, else ... i'm not able to use FSUTUL ! ;-)

sorry if i'm a little blockhead ... but i'm going on reading and reading
your example and mine... and i can't see where is the problem :-(

Writing pseudo-code is fine when explaining a general
principle but is of no use when it comes to debugging.
I created a batch file for you that shows how the hardlink
concept works. You now need to create your own batch
file to demonstrate how it does NOT work when you do it.


.



Relevant Pages

  • Re: FSUTIL, hardlink not working
    ... i'm not used to post without searching in google, ... This is the original file. ... this doesn't seem an hardlink to me. ... echo Viva l'Italia! ...
    (microsoft.public.win2000.file_system)
  • Re: FSUTIL, hardlink not working
    ... echo Viva l'Italia! ... create hard link to the original file ... but i'm going on reading and reading ...
    (microsoft.public.win2000.file_system)
  • Re: deny deleting a file for users
    ... However since it's a mail spool ... Using a hardlink ... then writes the temp file back over the original file, ...
    (Focus-Linux)
  • Re: FSUTIL, hardlink not working
    ... google is not frend as YOU are! ... i'm not used to post without searching in google, ... This is the original file. ... this doesn't seem an hardlink to me. ...
    (microsoft.public.win2000.file_system)
  • Hardlinks
    ... Question for a hardlink guru: Does a hardlink actually occupy the same disk space as the file to which it is linked, as appears to be the case in Windows Explorer? ... I've read what I can find about hardlinks, but nowhere found a definitive way to have Explorer identify which entries are hardlinks, or even an assertion that a hardlink does NOT require the same amount of disk space as the original file. ...
    (microsoft.public.windowsxp.general)