How to copy MS Windows symlink files as is?

Solution 1:

A tool answer: LinkShellExtension allows you to do this and much more. If you're working with soft/hard links in Windows at all, it's an enormously helpful tool.

In this case, you probably want to choose its 'Splice' behaviour in copying Symlinks.

Solution 2:

partially duplicate question, multiple good answers are here

Using Windows tool

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

and you should disregard a message:

output is 0 File(s) copied

also another tool in standard Windows installation: robocopy

/SL :: copy symbolic links versus the target.

Since you mentioned you want to "send" it, you might get TAR which can pack/unpack symlinks into one archive file. 7z might one day too.
As I see it, 7zip can archive them but not extract on Windows.

Solution 3:

The symlink to a directory acts as a directory itself. So, when you copy the directory, you copy the directory.

If you had a directory with a bunch of files in it and you wanted a copy of it, but without the files in it, you'd just make a new directory with the same name. Same thing applies here, really.