Help for this page
@echo off setlocal EnableDelayedExpansion ... set path=!$newpath:~1! echo PATH NEW %PATH:;=&echo.%
endlocal & set path=%$newpath:~1%