Jump to content

Build Theme!
  •  
  • Infected?

WE'RE SURE THAT YOU'LL LOVE US!

Hey there! :wub: Looks like you're enjoying the discussion, but you're not signed up for an account. When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. You can like posts to share the love. :D Join 93098 other members! Anybody can ask, anybody can answer. Consistently helpful members may be invited to become staff. Here's how it works. Virus cleanup? Start here -> Malware Removal Forum.

Try What the Tech -- It's free!


Photo

Add a context menu choice to see if a file is a hardlink or not

Applies to Windows XP Vista 7 and 8

  • Please log in to reply
No replies to this topic

#1 Ztruker

Ztruker

    WTT Technical Elder

  • Tech Team
  • 8,292 posts
  • Interests:Helping people fix MS Windows related computer problems of all kinds.

    Waking each morning to see the green side of the Earth!

Posted 03 March 2014 - 09:18 PM

Add Is this a link to the Windows Explorer right click Context Menu.
 
Step 1: Create isItaLink.bat.
Click Start, type notepad and press Enter.
Copy and paste the following RED lines into the Notepad window:

fsutil hardlink list %*
pause

 
Save the files as isItaLink.bat in a folder you will be keeping.
 
Step 2: Create AddisLink.reg as follows:
 
Click Start, type notepad and press Enter.
Copy and paste the following RED lines into the Notepad window:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\isLink]
@="Is This a Link"

[HKEY_CLASSES_ROOT\*\shell\isLink\command]
@="\"C:\\
xxxxxxxx\\isItaLink.bat\" \"%1\""

Note: Change xxxxxxxx to the folder you put isItaLink.bat in.
 
Step 3: Merge into the registry
Merge AddisLink.reg into the registry by double clicking on it or right clicking and select Merge.


To use, open Windows Explorer and navigate to the file you are interested in,
Right click on it and select Is This a Link.

A Command Prompt window will open with the results.

For instance, if I do this for C:\Windows\explorer.exe, I get the following:

C:\Windows>fsutil hardlink list "C:\Windows\explorer.exe"
\Windows\WinSxS\amd64_microsoft-windows-explorer_31bf3856ad364e35_6.2.9200.16628
_none_aac334d9034c59e1\explorer.exe
\Windows\explorer.exe

C:\Windows>pause
Press any key to continue . . .

This means C:\Windows\explorer.exe does not really exist, it's actually a hardlink to \Windows\WinSxS\amd64_microsoft-windows-explorer_31bf3856ad364e35_6.2.9200.16628_none_aac334d9034c59e1\explorer.exe

If I do this with C:\Windows\system32\MRT.exe, I get:

C:\Windows\System32>fsutil hardlink list "C:\Windows\System32\MRT.exe"
\Windows\System32\MRT.exe

C:\Windows\System32>pause
Press any key to continue . . .

This means MRT.exe is not a hardlink and is physically contained in the C:\Windows\system32 folder.

Edited by Ztruker, 03 March 2014 - 09:23 PM.

Rich
 

Die with memories, not dreams. – Unknown

    Advertisements

Register to Remove

Related Topics




Also tagged with one or more of these keywords: Applies to Windows XP, Vista, 7 and 8

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users