![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Wrong $home variable value I installed Powershell V2 RTM yesterday on my vista sp2 box, and I found my $home is C:, which is very strange My vista is installed on D:, and homepath is D:\users\xxx Any comments is appreciated |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Wrong $home variable value Yes, it is strange. $home value should coincide with env:\HOMEDRIVE and env:\HOMEPATH PS C:> gc env:\HOMEDRIVE C: PS C:> gc env:\HOMEPATH \Documents and Settings\Larry PS C:> $home C:\Documents and Settings\Larry PS C:> - Larry hayate wrote: Quote: > I installed Powershell V2 RTM yesterday on my vista sp2 box, and I > found my $home is C:, which is very strange > My vista is installed on D:, and homepath is D:\users\xxx > > Any comments is appreciated |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Wrong $home variable value Hi hayate, can you please run following and give us results? dir env:home* dir variable:home Martin |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Wrong $home variable value On Oct 30, 5:19*pm, Martin Zugec <martin.zu...@newsgroup> wrote: Quote: > Hi hayate, > > can you please run following and give us results? > > dir env:home* > dir variable:home > > Martin 21# dir env:home* Name Value ---- ----- HOMEPATH \Users\xxx HOMEDRIVE D: 22# dir variable:home Name Value ---- ----- HOME C: Thanks all the same |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Wrong $home variable value On Oct 31, 12:58*am, hayate <hayate...@newsgroup> wrote: Quote: > On Oct 30, 5:19*pm, Martin Zugec <martin.zu...@newsgroup> wrote: > Quote: > > Hi hayate, Quote: > > can you please run following and give us results? Quote: > > dir env:home* > > dir variable:home Quote: > > Martin > Hi, the result: > 21# dir env:home* > > Name * * * * * * * * * * * * * Value > ---- * * * * * * * * * * * * * ----- > HOMEPATH * * * * * * * * * * * \Users\xxx > HOMEDRIVE * * * * * * * * * * *D: > > 22# dir variable:home > > Name * * * * * * * * * * * * * Value > ---- * * * * * * * * * * * * * ----- > HOME * * * * * * * * * * * * * C: > > Thanks all the same because my document is located at C:\Documents |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Home Prem x64 SP2 RC1 wrong HD order | Vista hardware & devices | |||
| Vista Home Premium - Taskbar clock permanently wrong | Vista installation & setup | |||
| Something wen Wrong On My Windows Vista Home Pre academic | Vista General | |||
| Dual Boot w/XP Home Gone Wrong.......... | Vista installation & setup | |||
| How can I ensure that a variable is a built-in powershell variable? | PowerShell | |||