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.

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

1 Answer 1

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

 
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.