Using windows mklink for linking 2 files

2019-02-20 13:41发布

问题:

I'm trying to find the equivalent of *nix symlink on windows, and started using mklink. The issue is that, as a normal user (not admin), I can link to a folder with the "/J" option, but I cannot link to a file. I managed to do it as administrator, but I need it as standard user.

Why only Administrators can create file links on Windows? Is there a workaround?

回答1:

You need the SeCreateSymbolicLinkPrivilege to create a symbolic link, which I don't think users get by default.

-scott