@echo off REM ================================================================ REM install_tools.bat - TOOLS_BIN dauerhaft in User-PATH eintragen REM ================================================================ REM Einmalig ausfuehren. Danach sind alle bin/-Skripte in jeder REM neuen Shell direkt verfuegbar (ohne Pfadangabe). REM ================================================================ call "%~dp0setenv.bat" powershell -NoProfile -Command "$p=[Environment]::GetEnvironmentVariable('PATH','User'); if ($p -notlike ('*' + $env:TOOLS_BIN + '*')) { [Environment]::SetEnvironmentVariable('PATH', $p + ';' + $env:TOOLS_BIN, 'User'); Write-Host '[OK] TOOLS_BIN zum User-PATH hinzugefuegt: ' $env:TOOLS_BIN } else { Write-Host 'TOOLS_BIN ist bereits im PATH enthalten.' }" echo. echo Neues CMD-Fenster oeffnen, damit der geaenderte PATH wirksam wird. echo.