使用Windows 10命令提示符,我必须.exe
在几乎所有命令之后键入才能使其正常工作。例如,
>ping google.com
'ping' is not recognized as an internal or external command,
operable program or batch file.
>ping.exe google.com
Pinging google.com [216.58.217.46] with 32 bytes of data:
Reply from 216.58.217.46: bytes=32 time=11ms TTL=55
>where java
'where' is not recognized as an internal or external command,
operable program or batch file.
>where.exe java
INFO: Could not find files for the given pattern(s).
>where.exe java.exe
C:\ProgramData\Oracle\Java\javapath\java.exe
我在运行SDK Manager的Android Studio时遇到问题,我怀疑这是相关的。另外,这很烦人,我想知道它是否有可能破坏其他脚本。我不知道确切的时间何时开始,但是我想不出我更改过的任何设置都可以做到这一点。
您的%PathExt%
环境变量中可能有垃圾-这是cmd.exe知道应尝试使用的文件扩展名的方式。通常,其内容应为:
C:\Users\Mantas>set pathext
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
使用sysdm.cpl
→高级→环境变量进行检查和修复。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句