我不确定这是否是正确的问题。
我有一个exe,它获取环境变量(路径)的值并搜索该exe继续运行所需的dll。因此,环境变量的路径是本地路径,例如:C:\Program Files\Security
是否有可能使该路径成为远程路径?它可以像://10.x.x.x/sys/security or //sysname/sys/security
。
谢谢你。
最佳答案
确实有可能,但不是一个好主意。
A system path that contains a UNC path may cause severe system problems and severe software problems. Therefore, a system path that contains a UNC path is unsupported.
http://support.microsoft.com/kb/978856
尽管它说适用于服务器版本,但我怀疑一般建议通常适用于Windows。
关于windows - 指向不同系统的环境变量路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21751100/