How to create symlinks (symbolic link)using the command-line utility mklink in Vista

One of the interesting features of Linux—symbolic links—finally makes an appearance in Windows. You can create symlinks using the command-line utility mklink.
The syntax is as below:
MKLINK [[/D] | [/H] | [/J]] Link Target
where: /D Creates a directory symbolic link (soft link).
Default is a file symbolic link
/H Creates a hard link (link to a file) instead of a symbolic link
/J Creates a Directory Junction Link Specifies the new symbolic link name
Target Specifies the path (relative or absolute) that the new link refers to
For example, if you want to make D:\Data to be available from the folder D:\Maindata, use C:\mklink /D D:\Maindata D:\Data
If you now look in D:\Maindata you’ll see whatever files were in the other directory.