Command line Hardlink tool
hardcopy. Free utility!
hardcopy is a simple command-line application that makes hardlinks in NTFS as easily as “copying” a file. It has two simple parms, srcfile and destfile. Just like copy.
If you don’t know what a hardlink is, check out my HardLinks for Windows post.
Error levels are supported. 0 means successful. 1 means there was a problem with the parms. 2 means the hardlink could not be created for whatever reason.
This works for files on the same volume. It does not work for folders, and does not work across volumes, so don’t even try it.
Here’s an example:
hardcopy c:\junk\test.txt c:\other.txt
That makes a harcopy of c:\junk\test.txt and puts it in the root folder of drive c, calling it other.txt. Both files are exactly the same file on the drive, just two different handles to it.
You’re allowed 1023 hardlinks in NTFS per file, so go nuts.
This one weighs in at 45 kilobytes. No install required.
Praise for hardcopy.
OMG. I need this. – TimC
Supported Platforms:
- Windows (as far as I know, all flavors). Only works under NTFS.
How to install:
- Download the zip file
- unzip it
- run it from a command line
- Enjoy!
Downloads:
| Name | Version | File | Size | Added |
|---|---|---|---|---|
| hardcopy | 1.0 | hardcopy.zip | 45 KB | 2010-06-25 |
Changelog:
- Version 1.0 (2010-06-23)
Legal:
hardcopy is copyright (c)2009, poweredbycode. All rights reserved. While every effort has been made to ensure that hardcopy is error-free, this is a free application and I’m only human. As such, it carries no warranty, suitability for a particular purpose, or guarantee of any kind. Use it at your own risk. If you don’t like it, delete it. Windows is a registered trademark of Microsoft Corporation, who has nothing to do with hardcopy, other than exposing the API function.

