Windows: hard links

The tutor begins about links in file systems.

In a file system, a link is the appearance of a resource in one location, when it’s actually somewhere else. The user finds the resource at the link; from there, the operating system delivers the resource.

With a hard link, the resource appears to be located at the link, even to another program.

A use for a hard link might be as follows: Let’s imagine you’ve a web page that runs a script. You save the script file at c:\scripts\script_file. However, you want the page to find the script in its own directory, which might be c:\html. You make a hard link in c:\html that points to c:\scripts\script_file. You might call the link c:\html\the_script_link.

With the Windows Command Prompt, the command would be

mklink /h c:\html\the_script_link c:\scripts\script_file

Note the forward slash in front of the h, while the file system itself, being Windows, uses backslashes.

Source:

www.howtogeek.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply