使用 windows mklink 链接 2 个文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6722589/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using windows mklink for linking 2 files
提问by Fred Simon
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.
我试图在 Windows 上找到等效的 *nix 符号链接,并开始使用 mklink。问题是,作为普通用户(不是管理员),我可以使用“/J”选项链接到文件夹,但无法链接到文件。我设法以管理员身份执行此操作,但我需要以标准用户身份执行此操作。
Why only Administrators can create file links on Windows? Is there a workaround?
为什么只有管理员才能在 Windows 上创建文件链接?有解决方法吗?
回答by snoone
You need the SeCreateSymbolicLinkPrivilege to create a symbolic link, which I don't think users get by default.
您需要 SeCreateSymbolicLinkPrivilege 来创建符号链接,我认为默认情况下用户不会获得。
-scott
-斯科特