@echo off
@set Path_=
D:\Program Files
for,/f,
"skip=4 tokens=1,2,*",%%a,in,('reg query "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v Path'),do,(
@set PathAll_=%%c
)
echo %PathAll_%|find /i
"%Path_%" && set IsNull=true|| set IsNull=false
if
not %IsNull%==true (
reg
add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v Path /t REG_EXPAND_SZ /d "%PathAll_%;%Path_%" /f
)
pause

相关文章:

  • 2021-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-25
  • 2022-12-23
  • 2021-11-07
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
相关资源
相似解决方案