本文介绍了使用Windows mklink链接2个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在Windows上找到相当于* nix的符号链接,并开始使用mklink。
问题是,作为一个普通用户(不是管理员),我可以通过/ J选项链接到一个文件夹,但是我无法链接到一个文件。
我设法以管理员身份执行此操作,但我需要它作为标准用户。



为什么只有管理员可以在Windows上创建文件链接?
是否有解决方法?

解决方案
您需要SeCreateSymbolicLinkPrivilege才能创建符号链接,用户默认得到。



-scott


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?

解决方案

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

-scott

这篇关于使用Windows mklink链接2个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 13:14