问题描述
这是。在那篇文章中,提到如何使用Windows GUI或RegEdit来找到环境变量。对我来说奇怪的是,命令行中的 SET
显示一个 USERPROFILE = C:\Users\brianjd
它不会显示使用Windows GUI或RegEdit方法。
This is a follow-up question to Where are my environment variables set?. In that post it's mentioned how one can find environment variables using the Windows GUI or RegEdit. What's strange to me is that SET
from the command line displays a USERPROFILE=C:\Users\brianjd
but it doesn't show up using the Windows GUI or RegEdit methods.
问:在哪里 USERPROFILE
?为什么使用 SET
但不显示使用Windows GUI或RegEdit?
Q: Where is USERPROFILE
? Why does it show up using SET
but doesn't show up using Windows GUI or RegEdit?
推荐答案
我想你可能会在 HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory
每个用户都有自己的Profile键,它存储ProfileImagePath(并且设置为与%userprofile%$ c相同的值) $ c>)
Each user has it's own Profile key as well, which stores the ProfileImagePath (and is set to the same value as %userprofile%
)
这可能解释了为什么这不是出现在GUI中的环境变量。
It may explain why this is not a environment variable that appears in the GUI.
我没有任何来源确认对不起。但是上个星期我不得不用这个来修复一个坏的档案。
希望有帮助。
I don't have any source to confirm that sorry. But I had to use this to repair a broken profile last week.Hope it helps.
M'vy
这篇关于Vista32上的“USERPROFILE”在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!