Page 2 of 2

Re: Linked files with hard link

Posted: 26 Jul 2021 19:01
by highend

Re: Linked files with hard link

Posted: 26 Jul 2021 20:09
by zakoul
I'm not trying to create a hard link, but trying to get information about it.
The baht file works:

Code: Select all

fsutil hardlink list "C:\Windows\System32\aadcloudap.dll"
pause
but through the script there is an error.

Re: Linked files with hard link

Posted: 26 Jul 2021 21:00
by highend
Probably
rtfm "idh_wow64.htm";

Re: Linked files with hard link

Posted: 26 Jul 2021 21:52
by zakoul
I found a solution:

Code: Select all

    $cmd        = <<<>>>
cmd /c @chcp 65001 >NUL 2>NUL & <xydata>\fsutil hardlink list "<curitem>"
    >>>;
Copied fsutil.exe from "%winsysdir%" to "<xydata>"