如果我有一个同名的 System
和 User
环境变量,它们是如何处理的?它们是串联的吗? user
变量是否覆盖了 system
变量?考虑到这一点,如果我需要向 Path
变量添加一些内容,那么添加到哪里更方便?
最佳答案
我认为这篇文章应该回答您的问题:Environment variables in Windows NT
User environment variables
User environment variables can be viewed from Control Panel as well. The user may add, delete or modify the environment variables in the User Environment Variables for User field. These variables take precedence over system environment variables. The user path is appended to the system path.
关于windows - 如何评估 Windows 环境变量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5126512/