Using windows mklink for linking 2 files

后端 未结 2 993
离开以前
离开以前 2021-01-16 14:51

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 \"/

相关标签:
2条回答
  • 2021-01-16 15:18

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

    -scott

    0 讨论(0)
  • 2021-01-16 15:30

    Had problems creating links on Windows 10 Home Edition - I was getting "You do not have sufficient privilege to perform this operation". In the end, I was able to create a soft link using power shell with this command:

       cmd /c mklink /J c:\path\to\symlink d:\target\directory
    

    The above creates a soft link but does not work for symbolic links (/D option). Soft link was sufficient for my needs (and I didn't have to install gpedit.msc).

    0 讨论(0)
提交回复
热议问题