#update path only for the current session set PATH=%PATH%;C:\your\path\here\ #update the path permanently setx /M PATH "%PATH%;C:\your\path\here\"
set path=C:\Program Files\Java\jdk1.6.0_23\bin