Skip to main content
All CollectionsTeraCopy for WindowsUser Manual
Handling of Soft and Hard Symbolic Links
Handling of Soft and Hard Symbolic Links
Updated over a week ago

This guide explains how TeraCopy handles hard links, symbolic links, and junctions, and provides instructions on creating them.

Hard Links

What Are Hard Links?

A hard link is a reference directly to the physical data on a storage device. It allows multiple filenames to point to the same data on the disk. Hard links can only be created for files on the same volume and do not support network paths (UNC paths that begin with \\). Unlike shortcuts, hard links do not display a shortcut arrow icon.

Creating Hard Links

To create a hard link in Windows, use the Command Prompt with the following syntax:

mklink /h "Link" "Target"

  • "Link": The name of the hard link you want to create.

  • "Target": The path to the existing file you want to link to.

How TeraCopy Handles Hard Links

TeraCopy copies hard-linked files as regular files. When you copy a hard link using TeraCopy, it duplicates the file content at the destination, not the link itself. This means the copied file is independent of the original hard link.

Symbolic Links

What Are Symbolic Links?

Symbolic links, or symlinks, are advanced shortcuts that point to a file or directory. They can link to local or remote targets, including network paths (UNC paths). Symbolic links appear identical to the target source and display a shortcut arrow icon. Opening a symbolic link redirects you to the target source.

Creating Symbolic Links

To create a symbolic link to a file, use:

mklink "Link" "Target"

To create a symbolic link to a directory, use:

mklink /d "Link" "Target"

  • /d: Specifies that the link is a directory symbolic link.

How TeraCopy Handles Symbolic Links

  • File Symbolic Links: TeraCopy copies the target file's content to the destination. The symbolic link itself is not recreated.

  • Directory Symbolic Links: TeraCopy 4 does not copy directory symbolic links. Instead, it displays an error message: "Source: reparse point skipped".

    This means the symbolic link to the directory is ignored during the copy process.

Junctions

What Are Junctions?

A junction, or directory junction, is a type of symbolic link that points to a directory on a local volume. Junctions make it appear as though the target directory exists at the location of the junction. They do not support network paths (UNC paths) and display a shortcut arrow icon.

Creating Junctions

To create a junction, use:

mklink /j "Link" "Target"

  • /j: Specifies that the link is a directory junction.

How TeraCopy Handles Junctions

TeraCopy 4 skips junctions during the copy process and shows the following error message: "Source: reparse point skipped". This indicates that the junction is not copied to the destination.

Summary

  • Hard Links: Copied as regular files by TeraCopy. The link itself is not preserved.

  • Symbolic Links to Files: TeraCopy copies the target file's content.

  • Symbolic Links to Directories and Junctions: Skipped by TeraCopy 4, displaying an error message.

Did this answer your question?