我以为这会在中工作
PS C:Usersstojko> $env:Path = C:Usersstojko
C:Usersstojko : The term 'C:Usersstojko' 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:13
+ $env:Path = C:Usersstojko
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:Usersstojko:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
如果我选择
$env
没有显示任何内容。
$profile output
C:UsersstojkoDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1
如何在WIndows 10上设置env?
这是一个需要设置的字符串:
$env:Path = "C:Usersstojko"
如果您想将其添加到现有列表中:
$env:Path += ";C:Usersstojko"