You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
506 B
14 lines
506 B
set command=reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PATH |
|
call %lib%\utilities\exec_command.bat |
|
set res=%res:~29,800% |
|
|
|
echo %res% | findstr /c:"%bin%">nul |
|
if %errorlevel% equ 0 goto :end_path |
|
set /a errorlevel=0 |
|
echo %PATH% | findstr /c:"%res:~0,15%">nul |
|
if %errorlevel% equ 1 goto :end_path |
|
|
|
set res=%res%;%bin% |
|
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v Path /t REG_EXPAND_SZ /d "%res%" |
|
|
|
:end_path |