Установка $HOME в PowerShell
Как мне изменить свой домашний каталог по умолчанию на "C:Userskhornsby "за каждый раз, когда я открываю powershell?
Я использую Windows 7. Ниже приведена информация о состоянии моего окружения.
Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS P:> cd ~ PS P:> echo $HOME P: PS P:> HOME="C:Userskhornsby" The term 'HOME=C:Userskhornsby' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:25 + HOME="C:Userskhornsby" PS P:> Set-Variable HOME "C:Userskhornsby" Set-Variable : Cannot overwrite variable HOME because it is read-only or constant. At line:1 char:13 + Set-Variable PS P:> dir env:home* Name Value ---- ----- HOMEPATH HOMEDRIVE P: HOMESHARE \fileservkhornsby$ PS P:>