views:

27

answers:

1

I'm running a command line programme as administrator,

but I found that PATH in System variable has higher precedence than in Administrator variable .

Is that true,can someone give some documents on this?

A: 

The user PATH is appended to the System PATH: Environment variables in Windows NT

Anders Lindahl
Do you mean System PATH will be used first,then User PATH?
Gtker
Yes. The values from system PATH will be before the values from user PATH in the current PATH, and thus have priority.
Anders Lindahl
But for values other than `PATH`,system has priority to user,is it wierd?
Gtker
No, in general user has priority over system. It is only PATH that is constructed in this manner.
Anders Lindahl