Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I need to copy a folder and all of its subfolders but I don't want any of the symlinks or their contents to come with it.

Can this be done simply?

Or - obviously - can I easily disconnect and remove all symlinks from a folder hierarchy.

share|improve this question

The command-line utility robocopy.exe (included in Win7) has the option /sl which
"Copies the symbolic link instead of the target.".

That result should be very close to what you have asked for.

See also Robocopy parameters help

share|improve this answer
Thanks for the idea but it won't work in my case. I need the symlinks to not be there at all in the copy. – OldCurmudgeon Mar 8 '13 at 19:35

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.