Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible using commands in Windows Server 2008 to make some folders on a partition B accessible as if they were on partition A?


D:\programb(some files) D:\programa(some files)

should be accessible like this, even by IIS:

C:\allprograms\programa C:\allprograms\programb

Is that feasible using something like mklink, and how?

share|improve this question
up vote 4 down vote accepted

Yeah, it's called mklink.

Edit - to clarify. You have a target folder - the one that already exists and contains your content, one of your examples was D:\programa\ . You want to create a link to it - that link doesn't currently exist, and would be C:\allprograms\programa\ .

mklink /d C:\allprograms\programa\ D:\programa\

That makes a soft link at c:\allprograms\programa (which didn't exist a moment ago) and points to the target d:\programa.

Tip - if you've tried something and it didn't work as expected, then include in your question those details - what you tried (exact syntax please) and the results, including any errors (verbatim.)

share|improve this answer
Yes, like mentionned in my post. I tried a bit with the information provided by Microsoft and the result was folders I can't access. I think I just don't understand the principles behind mklink. – Léon Pelletier Oct 9 '12 at 22:29
Did my edit help you? Don't forget to mark this answer if it works for you now. – mfinni Oct 10 '12 at 19:11
Just tried. That's crazy, really useful for a streaming website. – Léon Pelletier Oct 11 '12 at 1:14

Your Answer


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.