Windows 7 Forums


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

22 Apr 2012   #1

Windows 7 Pro X64
Space Coast of Florida
 
 
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 Pro x64
Florida, USA
 
 

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 7 Pro X64
Space Coast of Florida
 
 

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
Peterborough, England
 
 

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 7 Pro X64
Space Coast of Florida
 
 

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
NC, USA
 
 

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
Peterborough, England
 
 

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

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
Austin, Texas
 
 

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 7 Pro X64
Space Coast of Florida
 
 

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 problems?



Thread Tools



Similar help and support threads for: How can I enumerate all hardlinks on my boot drive
Thread Forum
Symlinker - Create Symlink, Hardlinks, And Directory Junctions via GUI Software
New Boot Drive. Help Confirming Boot Drive is Running Windows. Hardware & Devices
Windows 7 Will Only Boot if Boot Drive is the only Drive Plugged In General Discussion
Moved boot manager, 7 drive still refuses to boot without old drive. Performance & Maintenance
Cannot enumerate Registry key values. tunnel Network & Sharing


All times are GMT -5. The time now is 06:52 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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