Using windows mklink for linking 2 files

后端 未结 2 994
离开以前
离开以前 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: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).

提交回复
热议问题