gpt4 book ai didi

windows - 使用 mklink 将一个文件夹中的 dll 文件符号链接(symbolic link)到另一个文件夹

转载 作者:可可西里 更新时间:2023-11-01 10:43:35 25 4
gpt4 key购买 nike

如果我没有复制本地那些 dll 的选项,我如何将所有 dll-s 从另一个应用程序符号链接(symbolic link)到我的 bin 文件夹?

类似于:

mklink /h "C:\myApplication\bin\*.dll" "C:\directoryWithTheDlls\bin\*.dll"

最佳答案

这是帮助中的 loadlibrary 搜索顺序。

The directory from which the application loaded.

The current directory. Windows XP: If HKLM\System\CurrentControlSet\Control\SessionManager\SafeDllSearchMode is 1, the current directory is the last directory searched. The default value is 0.

The Windows system directory. Use the GetSystemDirectory function to get the path of this directory. Windows NT/2000/XP: The name of this directory is System32.

Windows NT/2000/XP: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System.

The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.

The directories that are listed in the PATH environment variable.

因此将该目录添加到路径中。

关于windows - 使用 mklink 将一个文件夹中的 dll 文件符号链接(symbolic link)到另一个文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38183655/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com