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.

This is all I want to do:

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

f:\java

and map it to

c:\java

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

1 Answer 1

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
1  
@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
1  
On Windows XP, directory junctions can be created using Junction instead of mklink. –  grawity Mar 17 '11 at 16:26
1  
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

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.