Display Files or Highlight files that have Hardlinks

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
mouzzampk
Junior Member
Junior Member
Posts: 15
Joined: 2021-03-18, 14:20 UTC

Display Files or Highlight files that have Hardlinks

Post by *mouzzampk »

Hi, I tried to search the forum but couldn't find an answer how to see which files are hardlinks. Could you guide me on this.

Thank you
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Display Files or Highlight files that have Hardlinks

Post by *Gral »

You need content plugin, e.g. http://totalcmd.net/plugring/NTLinks.html - download, instal and configure custom columns or tooltip with "HLNK_Count" field.
You can also configure different color for appropiate files.
mouzzampk
Junior Member
Junior Member
Posts: 15
Joined: 2021-03-18, 14:20 UTC

Re: Display Files or Highlight files that have Hardlinks

Post by *mouzzampk »

Hi, thank you for the link and I managed to download but spent last two days trying to figure how to use.

I have plugin added into Total Commander but not sure how to use it. Could you provide some steps?

Thank you
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Display Files or Highlight files that have Hardlinks

Post by *hi5 »

The process is similar for all "define colors by file type" - in your case you would need to use the plugin properties to "find the files" and then use that saved search.
This one is very brief and applies to comments, but the process remains the same viewtopic.php?p=337415#337415
longer description viewtopic.php?t=51979
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Display Files or Highlight files that have Hardlinks

Post by *petermad »

2hi5

If you want to color file hardlinks:
  1. Open the "Find files" dialog (Alt+F7).
  2. Click on the Plugins tab.
  3. Click on Plugin and choose "ntlinks".
  4. Click on Property and choose: "HLNK_Count".
  5. Click on OP and choose: ">".
  6. Click on Value and choose: "1".
  7. Click on the Load/Save tab.
  8. Click on the Save button.
  9. Write a template name - I suggest: HLNK
  10. Click OK and close the "Find files" dialog.
  11. Open the Configuration dialog.
  12. Click on the menu item "Color" in the left side.
  13. Click on the button "Define colors by file type".
  14. Click on the button "Add".
  15. In the list find HLNK, click on it and click OK
  16. Pick a color - I suggest rgb 128 128 128 (a dark gray).
  17. Click OK 2 times
If you also want to color folder symlinks and junctions;
  1. Open the "Find files" dialog (Alt+F7).
  2. Click on the Plugins tab.
  3. Click on Plugin and choose "tc".
  4. Click on Property and choose: "file type".
  5. Click on OP and choose: "=".
  6. Click on Value and choose: "reparse point".
  7. Click on the Load/Save tab.
  8. Click on the Save button.
  9. Write a template name - I suggest: LNK
  10. Click OK and close the "Find files" dialog.
  11. Open the Configuration dialog.
  12. Click on the menu item "Color" in the left side.
  13. Click on the button "Define colors by file type".
  14. Click on the button "Add".
  15. In the list find LNK, click on it and click OK
  16. Pick a color - I suggest rgb 128 128 128 (a dark gray).
  17. Click OK.
  18. Mark the box to the left of the button "Define colors by file type".
  19. Click OK.

In stead of coloring the file names you can have a tooltip pop up with info about the hardlink when you hover over a hardlink:
  1. Open the Configuration dialog
  2. Click on the menu item "Display" in the left side.
  3. Mark the box "Show filename in file list as tooltip if truncated".
  4. Mark the box "Win32-style tips with file comments (if available)".
  5. Click on the [+] button marked "User-defined".
  6. Click on the button "Add".
  7. In the list find HLNK, click on it and click OK
  8. Enter: "[=ntlinks.HLNK_Paths]" in the input field.
  9. Click OK.
  10. Click on the button "Add".
  11. In the list find LNK, click on it and click OK
  12. Enter: "[=ntlinks.Obj_RealPath] ([=ntlinks.Obj_Type])" in the input field.
  13. Click OK.
  14. Mark the box "Show hints from all matching filters".
  15. Click OK 2 times
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply