oracle program files(x86),powershell无法调用Path中Program Files (x86)下的程序

在Path环境变量加入一个在Program Files (x86)下的路径后,Get-Command可以正常直接获取该路径下的程序,但执行时会因为路径里的“x86”而报错。如下所示: C:> (Get-Command code).Source C:Program Files (x86)Microsoft VS Codeincode.cmd C:> code 警告: Could not find ssh-agent x86 : 无法将“x86”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果 包括路径,请确保路径正确,然后再试一次。 所在位置 行:1 字符: 19 + C:Program Files (x86)Microsoft VS Codeincode.cmd + ~~~ + CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException C:> $env:PATH C:ProgramDataOracleJavajavapath;C:Program Files (x86)InteliCLS Client;C:Program File sInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSyste m32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine Component sDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86) IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management E ngine ComponentsIPT;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program Files IntelWiFiin;C:Program FilesCommon FilesIntelWirelessCommon;C:WINDOWSsystem32;C:WI NDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files

odejs;C:Program Files (x86)scalain;C:Program FilesTortoiseGitin;C:WINDOWSsystem32 configsystemprofile.dnxin;C:Program FilesMicrosoft DNXDnvm;C:Program Files (x86)Win dows Kits8.1Windows Performance Toolkit;C:Program FilesMicrosoft SQL Server120ToolsBi nn;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesGitcmd;C:UsersD ustarAppDataLocalMicrosoftWindowsApps;C:UsersDustarAppDataRoaming

pm;C:Program File s (x86)Microsoft VS Codein C:>

这个问题在cmd里并不会出现。

请问这是什么原因,该怎么解决?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值