Two things I might try.
- Run an
sfc /scannow
to see if that fixes any larger issues at play. - Check the registry for the
Path
key inHKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
. What's thetype. It should sayREG_EXPAND_SZ
问题现象:Windows、System32等系统目录里命令,无法通过Path搜索路径来执行。查看Path环境变量结果如下:
D:\>echo %Path%
%SystemRoot%;%SystemRoot%\System32;......
解决办法:
Two things I might try.
sfc /scannow
to see if that fixes any larger issues at play.Path
key in HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
. What's thetype. It should say REG_EXPAND_SZ