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.

Is it possible to copy a Symlink to a directory in Windows 7. When I try to copy a symlink'd directory, it tries to deep copy the contents to the location.

share|improve this question

5 Answers 5

up vote 5 down vote accepted

I don't know of a way to do it within Windows Explorer, but you can use xcopy at the command line with the /b argument, see here.

share|improve this answer

Use a program that supports them, obviously. Far Manager for example allows me to either copy symlinks as links or traverse them and copy their contents:

alt text

share|improve this answer

Far Manager was the only thing that worked. Thanks Joey.

For some reason Link Shell Extension either doesn't provide a way to copy sym links/junctions, or I'm too stupid to figure it out. Tried everything on the Drop As... menu.

With Far Manager, just hit Copy at the bottom of the interface, after making sure that the other window pane is pointed at your destination folder. It's that simple!

I copied my entire User folder! Some links you have to correct afterwards, like application data. If you have Link Shell Extension just right click and change the path in the Link context properties menu. Otherwise they will point to your old drive. Be sure to correct the ones inside application data, AppData\Local, and Temporary Internet Files too. Be sure to TAKE OWNERSHIP before copying!

Also, you need to do this logged in to another Admin profile, or booted into another OS. If you're booted into another OS make sure the links point to the drive letter that the target OS wants, not the drive letter the current OS wants. For example my target OS is J:\users\Me. My Junctions there point to C:\users\Me because C:\ is the drive letter I'll be booted into. (Yes, clicking the links now will open your current OS's folder. Don't worry about it.)

There are Registry entries you have to change. See here.

share|improve this answer

Also I found a shell extension that might make this a bit simpler.

It's demonstrated on HowToGeek here

And the link to the shell extension itself is here

Unfortunately I haven't had a chance to test this myself because I need to do it on a server and I don't particularly want to fiddle around with shell extension on a production server - but I thought it might be useful.

share|improve this answer

use the following command from elevated command prompt:

xcopy /b /i <source symlink name> <destination symlink name>

it will say that 0 File(s) copied but the symlink will appear in the destination. This is tested under Windows 7 and Windows 8.x but should work starting as of Vista

share|improve this answer

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.