gpt4 book ai didi

windows-7 - Windows7忽略部分路径(在我的例子中是powershell)

转载 作者:行者123 更新时间:2023-12-02 23:53:56 28 4
gpt4 key购买 nike

Windows 7 不会激活 powershell 的路径。

1) C:\Windows\System32\WindowsPowerShell\v1.0 存在于我的路径中

    C:\GitRepository>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0;

2) 无法从 cmd 隐式运行 powershell

    C:\GitRepository>powershell 
'powershell' is not recognized as an internal or external command, operable program or batch file.

3) 但它显式运行

   C:\GitRepository>c:\Windows\System32\WindowsPowerShell\v1.0\powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\user\Androidwork\WebDevelopment\GitRepository> exit

C:\Users\user\Androidwork\WebDevelopment\GitRepository>

有什么想法吗?

最佳答案

您的问题是 PowerShell 路径前面的空格。只需删除它们即可,即:

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0; 

关于windows-7 - Windows7忽略部分路径(在我的例子中是powershell),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11257772/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com