Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to mount a network share on a folder in Windows, because I have an application that's stored big files in a hard-coded path (e.g. c:\path\of\directory). I can't change that path.

This is easily achievable in Linux using softlink or directly mounting on that directory, but I don't know how it can be done in Windows. I have tried mklink.exe and subst, but it creates a folder like shortcut with a .lnk extension.

Can anyone help me?

share|improve this question
    
Do I understand you correctly that you want to mount \\someserver\c$\path\of\directory to an arbitrary path (i.e. not a drive letter) on another machine? –  holmb Feb 20 '13 at 13:03
    
Check this: sevenforums.com/tutorials/… and this: howtogeek.com/98195/… –  jaume Feb 20 '13 at 13:08
1  
You can use this excellent shell extension in future to make symlinking easy. –  Karan Feb 21 '13 at 3:51
    
@Karan thanks and Good To know.. –  Rahul Patil Feb 21 '13 at 3:53
add comment

1 Answer

up vote 2 down vote accepted

Mounting a network share in an arbitrary directory path is possible with symbolic directory links, or by using DFS (Distributed File System) which is only available in Windows Server. See http://support.microsoft.com/kb/205524 (section "Feature Comparison to DFS").

To create a symbolic directory link use mklink /d c:\path\of\directory \\network\share (where directory must not exist in c:\path\of). Verify the command with dir /aL c:\path\of. If you ever want to delete the link be sure to use rmdir c:\path\of\directory and not del c:\path\of\directory which will delete files within that directory.

The symbolic directory link is not the same as an LNK-link. Even though it appears to be an LNK-link when viewed in the File Explorer, as it uses the same icon overlay with an arrow coming around the folder icon.

Another option, if you are in need of more storage space in that specific path, is to add another drive and mount that directly into the directory path. See http://support.microsoft.com/kb/307889/en-us for how to do that.

share|improve this answer
    
thanks................. –  Rahul Patil Feb 21 '13 at 18:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.