Aug
14
2006

Tip #37: Creating NTFS Hard Links in Windows XP

Today’s tip is on creating hard links on Windows XP systems using the NTFS filesystem. Hard links allow you to create an alternate name for an existing file on the same partition.

The hard link itself is simply a reference to an existing file, and points the exact disk location of the original file without actually duplicating the file. The hard link you create can be in a different directory as the original file, or in the same directory using an alternate name, but it must reside on the same partition as the source file.

To create hard links in Windows XP, use the following command from a Command Prompt (Start/Run/cmd):

fsutil hardlink create new_link_name source_file

One of the benefits of creating hard links is that all hard links to a file, as well as the original file, need to be deleted in order to actually delete the original file from the filesystem. So, if you create a hard link to important.doc called hl_important.doc and the original file is deleted, it will still be available by accessing hl_important.doc. If you delete both, then the file will be removed from the filesystem. Keep in mind though that changes to either the original file or its hard links will affect each other. So, if you overwrite important.doc on accident, your hard links will also contain the same overwritten data.

Another obvious benefit is that you can create an easier to type “alias” for a deeply nested but often accessed file. To create a link to C:\Deeply\Nested\File.doc on the root of your C drive, simply use:

fsutil hardlink create “C:\newlink.doc” “C:\Deeply\Nested\File.doc”


If you have any questions on today’s tip, please leave comment.

Tip #37: Creating NTFS Hard Links in Windows XP

Originally from Jameser's Tech Tips by Jameser

3 Responses so far

  1. male hung hunks December 18, 2007 1:45 pm

    Good post

  2. free nude twinks December 19, 2007 10:15 am

    I haven’t gotten much done these days. My life’s been basically dull these days. I’ve just been hanging out not getting anything done.

  3. free naked hunks December 19, 2007 3:29 pm

    I feel like a bunch of nothing. I guess it doesn’t bother me. More or less not much exciting happening right now. I’ve basically been doing nothing. I haven’t gotten much done these days.

Leave a Comment

Name (required)

Email (required)

Website

Comments

2006 (c) Tech Tips, Using the ReviewSaurus Theme : Powered by WordPress