Monday, February 8, 2010

Create a link from command prompt

To create a link to a file or a folder we generally use the GUI. For particular issues (script, batch files) is possible to use shell commands.

Commands are:

mklink "Link Name" c:\Folder\SubFolder\filename.txt

or

mklink "Link Name" c:\Folder\SubFolder


These commands create a link called "Link Name" that refers to the specified folder or file.

Warning: the link will be created in the folder where the command runs.

No comments: