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.


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

  • 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. Mar 8 '13 at 19:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.