Page 1 of 1

hard links - info about other hard links to same files?

Posted: 2019 Aug 02, 05:13
by jimspoon
Can xplorer2 be made to display the other hard link pathnames for files shown in a pane? In a details pane, or in a scrap container? I know I can use the Links column to display files with >1 link in a scrap container, but is it possible to sort them so that all the hard links for each file are displayed together, i.e. consecutively? When browsing files in a pane, it would be great to be alerted to the fact that a file has other hard links to it, to be able to jump to them and manage them easily.

Re: hard links - info about other hard links to same files?

Posted: 2019 Aug 02, 19:25
by nikos
I have a todo note to create a feature like this one day. In the meantime you can use this external tool

Code: Select all

fsutil hardlink list MyFileName.txt
https://docs.microsoft.com/en-us/window ... l-hardlink

Re: hard links - info about other hard links to same files?

Posted: 2019 Aug 12, 09:18
by RightPaddock
jimspoon wrote:
2019 Aug 02, 05:13
Can xplorer2 be made to display the other hard link pathnames for files ....
Have a look at Link Shell Extension, it can give you this:-

Image <<== click me

BR

Re: hard links - info about other hard links to same files?

Posted: 2019 Aug 23, 14:01
by johngalt
Another vote for Link Shell Extension - not only does it add extra info to the link properties, it makes actually creating links / junctions etc. much easier from directly in Explorer - and works extremely well when used from inside Xplorer² as well.

Re: hard links - info about other hard links to same files?

Posted: 2019 Aug 26, 20:40
by FrizzleFry
I also use and like Link Shell Extension but I found a nice AutoIt script that displays a window with all the hard links of a file quicker than doing properties and link properties.

Code: Select all

#include <Array.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>

;local $file = 'D:\scripts\AutoIt\Planet Suzy~link~.au3'
if $cmdline[0] > 0 then
	$file = $cmdline[1]
endif

; Enumerate all hard links to the file
Local $info = _WinAPI_EnumHardLinks($file)
_ArrayDisplay($info, '_WinAPI_EnumHardLinks',"",default,default,"Hard Links")
Just save it to a convenient place and call it from a user command

>C:\tools\AutoIt3\AutoIt3_x64.exe C:\scripts\list-hard-links.au3 "$F"

You need to install AutoIt for the script to work.

Re: hard links - info about other hard links to same files?

Posted: 2019 Aug 27, 02:30
by johngalt
There's also a great little utility by Nir Sofer that accomplishes the same - http://www.nirsoft.net/utils/ntfs_links_view.html