# How can one copy a directory tree from one drive to another, replicating any junction points, under Windows?

I have an NTFS drive that I want to copy a whole directory tree, which has a few junctions throughout it, but preserve the junctions so that they point to the same relative places on the new drive (also NTFS) in order to achieve a true cloning.

That is, if the old drive had a junction O:\abc\def\ghi\Bar that points to O:\abc\Foo, then I'd want to end up with N:\Blah\abc\def\ghi\Bar pointing to N:\Blah\abc\Foo

RoboCopy doesn''t seem have an option for this (and Google seems to confirm this.)

I've also tried FastCopy which at first seem to do the trick until I realized that N:\Blah\abc\def\ghi\Bar was pointing to O:\abc\Foo instead of N:\Blah\abc\Foo

Thanks.

• What about mklink – Raystafarian Feb 13 '15 at 19:01
• I don't have that on this system. I don't think it does copying though. – alanjf Feb 13 '15 at 19:07

I have had great success using Link Shell Extension, using it's Smart Copy and Smart Mirror options (which you can invoke when dragging the directories to be copied using the right mouse button and choosing from the Drop Here sub-menu.)