Super User is a question and answer site for computer enthusiasts and power users. 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

This is all I want to do:

Take Java, which is on a USB drive, and map it to my local C drive.


and map it to


Naturally, for obtuse reasons, I can't copy it. (there is no existing c:\java) If it were on a happy non-existent drive letter like w, this wouldn't be a problem, but it needs to be the local C drive.

share|improve this question
up vote 2 down vote accepted

You can mount a partition as a folder instead of a drive letter. For example, if your entire F drive was what you wanted, you can mount it as c:\Java instead of F.

This is done from the disk management console, which for example you can find in compmgmt.msc in XP Pro.

EDIT: Another option is the MKLINK command for Vista and above. It's a native cmd.exe command, so it's not PowerShell friendly.

    MKLINK /J c:\Java f:\Java
share|improve this answer
Very close: if I didn't have other files I needed on the drive, I could, but I actually have two folders I need to mount on my c:\ that point to the f:\ – altCognito Mar 17 '11 at 14:37
@altCognito If that's the case, you can try the MKLINK command, which is part of the cmd.exe shell in Vista and later. "MKLINK /J c:\Java f:\Java" should work. – Hyppy Mar 17 '11 at 14:46
On Windows XP, directory junctions can be created using Junction instead of mklink. – grawity Mar 17 '11 at 16:26
Ooh, good call on Junction. That must be a new one. Sysinternals to the rescue again! – Hyppy Mar 17 '11 at 16:32
Junction. That's the one that did the trick. – altCognito Mar 17 '11 at 18:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .