Symlink can not create hardlink in windows10

I tried mklink link target and mklink \h link target in windows CMD, and it works fine.

But when using symlink(target, link), it always creates soft link regardless of absolute/relative path.

Is anyone have similar experience and know how to create hardlink?

I am using Julia v1.7.1

Hard links are not symbolic links, so I would not expect symlink to create hard links? (see the Microsoft documentation).

There will be a hardlink function in Julia 1.8:


You are right, The symlink use both symboliclink and junction point. It’s good to know a hardlink function will be in the v1.8.