Page 2 of 2

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

Posted: 2021 Jun 08, 18:39
by johngalt
Oooh, do tell when you are able to! Another product for me to buy? Sign me up!

And if you need help testing.....please let me know!

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

Posted: 2021 Jun 08, 19:34
by BRX
@johngalt
> Wait, you don't use X² to find duplicates?

No, only for immediate pane comparison. As I said I don't bother much with duplicates after they are hardlinked and take up no space anymore.
And it's quicker to hardlink with the command line tools I mentioned than to use a dedicated dupes app. I even have registered Duplicate Cleaner Pro which is a very good app (and I'm curious how Nikos' new app will compare to that) but actually haven't used it for years.

@Nikos
> ps. I was just bitten by hard links, I am migrating to a new laptop and obviously all the original hard links were replaced with real files... damn this
> program

ln or rsync are your friends here. As I described I upgrade to bigger harddisks now and then and I have to transfer hardlinks as well.

https://schinagl.priv.at/nt/ln/ln.html

ln is a fantastic tool. The command "ln.exe --output logfile.txt --progress --copy s:\ t:\" (command line obviously) transfers your disk contents with hardlinks. You can achieve the same with rsync but that's a bit more complicated under Windows.

(Schinagl also made dupemerge and LSE I mentioned both in this thread).

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

Posted: 2021 Jun 08, 23:33
by johngalt
I use Schnagel's LSE directly from inside Xplorer²'s context menu, being a shell extension and all. And I have a paid version of Dupeless and one other (a pretty older program) but I find X²'s duplicate file finder perfectly adequate. Then again, I don't have many duplicates, other than in music files, where I may have multiple versions of an album and the files are nearly identical because they are, in fact, identical, when pressed.

And I'm not talking about finding the hardlinks, I mean the duplicates before you convert to hardlink. It's built into X².

But I also understand individual workflows - you do what is best for you, and after you've done something for a month, or 6 months, or a few years, it's hard to consider changing when you get the workflow set up exactly as you want it to be set up. So, please don't take this as a "You should be doing it this way only!" type statement, just as a suggestion in case you want to experiment and possibly vary your workflow, and if you don't, no worries.

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

Posted: 2021 Jun 09, 14:21
by nikos
johngalt wrote: 2021 Jun 08, 18:39 And if you need help testing.....please let me know!
I wish I had more troops like you! :)
I believe there will be an alpha version in this month, watch this space!

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

Posted: 2021 Jun 09, 14:37
by johngalt
Nice! Looking forward to it!

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

Posted: 2021 Jul 10, 15:30
by FrizzleFry
Here is another script to list all hard links for a file. This one is in PowerShell and sends the list to an x2 scrap pane.

Code: Select all

$list = $env:tmp + '\list-hard-links.txt'
if($args){
	$file = (get-item $args[0]).fullname

	# using Hermann Schinagl's ln command which does not require admin to list links
	C:\tools\ln.exe -l $file | %{if($_ -notmatch '^ln \d\.\d+'){$_}} | sort > $list
	C:\tools\xplorer2_ultimate\xplorer2_64.exe /F:1 $list
	#Notepad2 $list
	
}else{message-box "no file specified`n`nusage:`nlist-hard-links <file>" "list-hard-links error"}
The script uses Hermann Schinagl's ln command which is available here.

I use it with a user command like this:
>C:\tools\runposh.exe --windowstyle=hidden C:\scripts\list-hard-links.ps1 "$F"

runposh is a little tool to launch PS scripts. It is available here.

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

Posted: 2021 Jul 20, 13:00
by johngalt
Nice find! Thanks!