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.

Does anyone know of a third party (or even windows native) solution to this simple problem.

I want to map an internal network share on our windows server to a folder on each of the client machines in the network. I dont want to have to use Drive Letters I would just like to set up a Folder on my C drive that is actually a windows share

eg

C:\DATA\Network Docs

is actuallyp pointing to

\\Server\SharedData\

Is this possible? Is there a third party solution that does it? All clients are Windows XP and Windows 7.

share|improve this question

2 Answers 2

up vote 16 down vote accepted

In Windows Vista or Windows 7, you can create a "junction folder"/"Symbolic link" to redirect the contents of one to another.

Simply type:

mklink /d "c:\data\network docs" "\\server\shareddata\"

I have not tested it with a FQDN, but as far as I can tell, it should work. I have tested it with a network mapped drive, and this works perfectly... so at a last resort, you can map first, then do this.

The /d creates a directory (c:\data\network docs in this example) and it must not exist. It will be created by this command.

You must have admin privileges when you run CMD. You can do this under an admin account by pressing ctrl-shift-enter instead of enter when you run CMD.

The end result is also achievable in Windows XP, but it is not as easy. Guide here

share|improve this answer
1  
Note that for Windows XP, the linked guide explicitly says, "you can’t create a junction point on an NTFS drive that points to a network drive." (for Windows XP) –  Bill Nov 13 '12 at 16:41
    
Adding to @Bill's comment. You can't make a junction point in Win7, etc either, but the mklink tool functions like a symbolic link. If you try to use a junction (ie, using the Sysinternals junction tool), it will make the junction, but will not function. –  Nick Sep 26 '13 at 2:45
    
Works for Windows 8.1 as well. Make sure to run the command prompt with administrative privileges. –  dave k Oct 25 '13 at 20:21

If you use a junction switch then there is no need for admin mode.

mklink "c:\data\network docs" "\\server\shareddata\" /j

Hence on your netlogon script you use a condition

where if exist "c:\data\network docs" (
goto next
)else (
mklink "c:\data\network docs" "\\server\shareddata\" /j
)
share|improve this answer
    
Attempting to use a junction in such a way results in a "Local volumes are required to complete this operation" error. –  EAMann Jul 12 at 20:03

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.