在Windows上符号链接符号、链接、Windows

2023-09-08 08:43:19 作者:选择奔跑

我尝试在Windows中创建符号链接(如1回答Is有什么办法可以使用​​的Eclipse在摇篮Android项目整合?)

I try to create symbolic link on Windows (as 1st answer to Is there any way to integrate Eclipse with Gradle in Android project?)

在Linux中,

ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml

Windows 7中有 MKLINK UTIL ,但它只是没有在我的电脑上工作。

Windows 7 has mklink util, but it just did not work on my PC.

我发现了一个伟大的结UTIL ,并可以做结资源的src / main / RES ,但链接文件创建.lnk文件(即Windows快捷方式)。

I found a great Junction util and could do junction res src/main/res, but for link to file is created .lnk file (aka Windows shortcut).

我发现混帐击可以执行 LN -s的src / main / AndroidManifest AndroidManifest.xml中的.xml ,但它创建副本,而不是链接。

I discovered that Git Bash can execute ln -s src/main/AndroidManifest.xml AndroidManifest.xml but it creates copy, not link.

推荐答案

使用的提升命令提示符

如果错误,请检查SeCreateSymbolicLinkPrivilege,可能是关闭UAC。

If error, check "SeCreateSymbolicLinkPrivilege", possibly turn off UAC.