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
Ztruker

Windows 10 Pro 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
pbcopter

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64, Windows 10 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
Ztruker

Windows 10 Pro 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
seavixen32

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
Ztruker

Windows 10 Pro 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
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Don't know if you get that info with this

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

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
SIW2

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
karlsnooks

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
Ztruker

Windows 10 Pro 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




Similar help and support threads
Thread Forum
Windows 7 has swapped my drive paths with my boot drive and sec. drive
I have just finished a pc build with a SSD to be used as the boot/OS drive and a secondary 2 HDD setup in raid 0 for storage. First I started with the SSD only and installed win7, applied all the updates etc. At this point the system has rebooted at least half a dozen times with no issue. ...
Installation & Setup
Symlinker - Create Symlink, Hardlinks, And Directory Junctions via GUI
This simplified GUI could be very helpful to those who prefer it over the command line. symlinker: Create Symlink, Hardlink, And Directory Junction In Windows
Software
Boot Priority & Boot Device Control for New SSD as boot drive
After reading through lots and lots of posts and tutorials, I'm still a little confused. I worked for a carpenter one summer when I was a kid and he stressed the philosophy of measuring twice and cutting once as a rule to live by. So, before I fire up my saw, I thought I would seek a little...
Installation & Setup
New Boot Drive. Help Confirming Boot Drive is Running Windows.
I am new and bad at computers, please take that into consideration. I installed a new SSD and then mirrored my old HDD onto the SSD. I then made the SSD my Boot Drive in Disk Management. I am a little unclear about the ramifications. First, does making the SSD my Boot Drive mean that my...
Hardware & Devices
Windows 7 Will Only Boot if Boot Drive is the only Drive Plugged In
I have a Windows 7 install on a 60gb SSD (assigned to C: in Windows), and a 3 other drives just for storage, and programs. Windows will only boot if the SSD is the only one plugged in. BCD lists this as my only entry, and is calling the C: drive to boot. However when I load my Windows cd, this...
General Discussion
Moved boot manager, 7 drive still refuses to boot without old drive.
I've been trying all day to get to a point where I can format my old hard drive (D). I found out today that, in its infinite wisdom, the Windows 7 installer put the boot manager on a completely separate drive from my new drive (C), the one I selected for installation. Windows 7 is totally...
Performance & Maintenance


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 04:44.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App