Why can't I use %USERPROFILE% in %PATH%?
Posted
by
Zano
on Super User
See other posts from Super User
or by Zano
Published on 2012-06-27T13:51:32Z
Indexed on
2012/06/27
15:18 UTC
Read the original article
Hit count: 160
On my Windows 7 machine, using the System Properties > Environment Variables tool, I try to add %USERPROFILE%\Bin
to the system variable PATH
. For some reason, that doesn't work, even though %SystemRoot%\system32
works fine.
When I try to run commands from the console, files in my Bin folder are not found, even though files in the System32
folder are found.
The only difference between UserProfile
and SystemRoot
that I can see is that the former is a user variable while the latter is a system variable.
I i write echo %USERPROFILE%\Bin
it yields c:\Users\zano
, and if I add c:\Users\zano\Bin
explicitly, everything work fine.
What's the problem here?
© Super User or respective owner