- MAXIMUMpcguides Windows Vista - http://maximumpcguides.com/windows-vista -
How to Create Symbolic Links
Posted By Brent Trahan On July 15, 2008 @ 2:13 pm In All, Customization, Vista, Windows | No Comments
A Symbolic Link acts (and looks) like a shortcut but provides a transparent link to the target file at the file system level instead of within explorer.
Symbolic Links are used most for backward compatibility. It can be used to trick software into thinking its accessing files at a location where the files have been moved.
Relative Symbolic Links
A relative symbolic link is a symbolic link that identifies the location of its target by its location.
For Example: I created a folder called test in the root of C:\. I also created a text file called file2.txt in the folder called test. I’m going to create a relative symbolic link in the folder test I created called file1.txt to the text file file2.txt.
Now if you open file1.txt file2.txt actually opens. To prove this, open file2.txt, type something in it and then open the file1.txt symbolic link.
Note: If the relative symbolic link is moved the link will not work anymore.
Absolute Symbolic Links
An absolute symbolic link is a symbolic link that identifies the location of its target by a full path.
Using the example above you’d type mklink file1.txt C:\test\file2.txt.
Note: If you move the absolute link to a different location it will still work.
To create a symbolic link to a shared folder you’d type mklink file1.txt \\file-server\test\file2.txt or mklink file1.txt Z:\test\file2.txt for a mapped folder.
Article printed from MAXIMUMpcguides Windows Vista: http://maximumpcguides.com/windows-vista
URL to article: http://maximumpcguides.com/windows-vista/how-to-create-symbolic-links/
Click here to print.
Copyright © 2008 MAXIMUMpcguides Windows Vista. All rights reserved.