Windows: Linking files and folders

Posted by Christian Ashby on March 13, 2010

At first glance it may not be obviously useful, but if you need to link one folder to another, or store a file somewhere else but refer to it within a different folder, you can do so by the very useful mklink command, available in Windows 7 and Vista. There is an alternative for Windows 2000 and XP called ‘junction‘.

To create links, simply open a command prompt (Start->Run->cmd), and type:

  • For files: mklink {destination} {target}
  • For folders: mklink /d {destination} {target}

Note that it may be necessary to become admin to link some files / folders.

 

 
Leave a Reply