设置powershell路径? [英] Setting powershell path?

查看:212
本文介绍了设置powershell路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 C:\Program Files \ Docker Toolbox 下有一个可执行文件 docker.exe



我设置了环境变量 PATH 并且它包含了该文件夹。但是当我在ps下运行命令时。它找不到它。请告诉我永久修复的详细信息。



我尝试了什么:



PS C:\ Users\me> docker

docker:术语'docker'不被识别为名称

检查名称的拼写,或者是否包含路径

在线:1字符:1

+码头工具

+ ~~~~~~

+ CategoryInfo:ObjectNotFound :( docker:St

+ FullyQualifiedErrorId:CommandNotFoundException



PS C:\ Users\me> docker

docker:The术语'docker'不被识别为名称

检查名称的拼写,或者是否包含路径

在行:1字符:1

+ docker

+ ~~~~~~

+ CategoryInfo:ObjectNotFound :( docker:St

+ FullyQualifiedErrorId:CommandNotFoundException

I have an executable file docker.exe under C:\Program Files\Docker Toolbox.

I did set the environment variable PATH and it includes the folder. However when I run the command under ps. It can't find it. Please tell me the details to fix it permanently.

What I have tried:

PS C:\Users\me> docker
docker : The term 'docker' is not recognized as the name
Check the spelling of the name, or if a path was include
At line:1 char:1
+ docker
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (docker:St
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\me> docker
docker : The term 'docker' is not recognized as the name
Check the spelling of the name, or if a path was include
At line:1 char:1
+ docker
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (docker:St
+ FullyQualifiedErrorId : CommandNotFoundException

推荐答案

这个SO帖子应该给你一个线索:

SO:设置Windows PowerShell路径变量 [ ^ ]
This SO post should give you a clue:
SO: Setting Windows PowerShell path variable[^]


这篇关于设置powershell路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆