windows add path command line code example
Example 1: cmd add to path
# 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\"
Example 2: add to path windows
Go here
https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
Example 3: set path in windows
set path=C:\Program Files\Java\jdk1.6.0_23\bin