Linked files with hard link

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Linked files with hard link

Post by highend »

One of my scripts helped you out? Please donate via Paypal

zakoul
Posts: 130
Joined: 11 Dec 2019 10:44

Re: Linked files with hard link

Post 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.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Linked files with hard link

Post by highend »

Probably
rtfm "idh_wow64.htm";
One of my scripts helped you out? Please donate via Paypal

zakoul
Posts: 130
Joined: 11 Dec 2019 10:44

Re: Linked files with hard link

Post 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>"

Post Reply