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

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
jimspoon
Bronze Member
Bronze Member
Posts: 100
Joined: 2002 Aug 22, 00:02

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

Post by jimspoon » 2019 Aug 02, 05:13

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.

User avatar
nikos
Site Admin
Site Admin
Posts: 14458
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

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

Post by nikos » 2019 Aug 02, 19:25

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

RightPaddock
Gold Member
Gold Member
Posts: 428
Joined: 2011 Jan 23, 18:58
Location: Sydney AU

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

Post by RightPaddock » 2019 Aug 12, 09:18

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
Windows 10 Pro (64 bit) version 1809 - Xplorer2 version: Pro 2.5.0.4 [Unicode] x64 2014-06-21

User avatar
johngalt
Silver Member
Silver Member
Posts: 292
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

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

Post by johngalt » 2019 Aug 23, 14:01

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

Image

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1142
Joined: 2005 Oct 16, 19:09

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

Post by FrizzleFry » 2019 Aug 26, 20:40

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.

User avatar
johngalt
Silver Member
Silver Member
Posts: 292
Joined: 2008 Feb 10, 19:41
Location: 3rd Rock
Contact:

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

Post by johngalt » 2019 Aug 27, 02:30

There's also a great little utility by Nir Sofer that accomplishes the same - http://www.nirsoft.net/utils/ntfs_links_view.html
Image

Image

BRX
Silver Member
Silver Member
Posts: 280
Joined: 2002 Feb 08, 12:12

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

Post by BRX » 2019 Nov 09, 22:16

Oh, that's nice. That has been a longstanding request of mine and I actually came to the forum just now to ask about it again.

I've also used the link shellextension so far and made a very simple little autohotkey script which displays the hardlinks copies them
to the clipboard and pastes them into an x2 scrap window.

But it would be very nice if x2 would do this natively with some command "send hardlinks to scrap" and/or displaying the links by clicking on
the number in the link column.

Post Reply