Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: How can I enumerate all hardlinks on my boot drive

22 Apr 2012   #1

Windows 8 Core X64
 
 
How can I enumerate all hardlinks on my boot drive

Is there anything available in Windows 7 that will allow me to create a list of all the hardlinks and the files or folders they point to on my boot drive?

I know I can do a fsutil hardlink list <file> to enumerate a single hardlink but what I'd like is a list of all hardlinks and the source they point to.

If nothing is available in Win 7, does anyone know of a program I can download to do this?

My System SpecsSystem Spec
22 Apr 2012   #2

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64
 
 

You can use dir /al /s

in the Command prompt

To get a text file output

dir /al /s > C:\Link.txt
My System SpecsSystem Spec
22 Apr 2012   #3

Windows 8 Core X64
 
 

Doesn't work. I tried from C:\Windows and C:\Windows\system32, both of which I know have hard links and noting was reported.
Quote:
C:\Windows>dir /al /s
Volume in drive C is D370_C
Volume Serial Number is C89E-70E8
File Not Found

C:\Windows>cd System32

C:\Windows\System32>dir /al /s
Volume in drive C is D370_C
Volume Serial Number is C89E-70E8
File Not Found
FOr example:
Quote:
C:\Windows\System32>fsutil hardlink list msiexec.exe
\Windows\System32\msiexec.exe
\Windows\winsxs\amd64_microsoft-windows-installer-executable_31bf3856ad364e35_6.1.7601.17514_none_a7a77a3b9cb96ce6\msiexec.exe
So a hardlink is not a reparsepoint.
Quote:
C:\Windows\System32>fsutil reparsepoint query msiexec.exe
Error: The file or directory is not a reparse point.
My System SpecsSystem Spec
.


22 Apr 2012   #4

Windows 7 Ultimate SP1 64-Bit
 
 

I'm not sure if this information is what you're after, but I'll post the link anyway.

Link Shell Extension
My System SpecsSystem Spec
22 Apr 2012   #5

Windows 8 Core X64
 
 

Thanks, I already have that extension installed. Works great for individual files or folders but does not provide a way to scan a folder or drive for all hardlinks.
My System SpecsSystem Spec
22 Apr 2012   #6

Win 7 Pro x64 SP1, Win 7 Ult x86 SP1
 
 

Don't know if you get that info with this

Hard-Link Migration Store
My System SpecsSystem Spec
22 Apr 2012   #7

Windows 7 Ultimate SP1 64-Bit
 
 

Once again, I'm not sure if Junction Link Magic is an example of what you want, but here it is:

Junction Link Magic
My System SpecsSystem Spec
22 Apr 2012   #8

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

NTFSLinksView - View NTFS symbolic links and junction points

Don't see anything there for hardlinks, tho.
My System SpecsSystem Spec
22 Apr 2012   #9

MS Windows 7 Ultimate SP1 64-bit
 
 

ZTrucker,
I'm more disturbed that DIR produces an error message.
Did you go to a command prompt, that is, did you:
WIN | type CMD.EXE | ENTER
WIN=key with microsoft logo on top.
My System SpecsSystem Spec
23 Apr 2012   #10

Windows 8 Core X64
 
 

I run with UAC disabled and issued the dir commands from a Command Prompt window. Tried it as you mentioned with the same Not found message.

NTFSLinksView - no hardlink support.
JunctionMagic - no hardlink support.
Hard-Link Migration Store - nothing to do with listing existing hardlinks.

Looks like the only way to do this is to iterate through all folders and using the fsutil command to query for a hard link.
My System SpecsSystem Spec
Reply

 How can I enumerate all hardlinks on my boot drive





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:43 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33