windows add directory to path cmd 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 directory to path windows 10
setx /M PATH "%PATH%;<your-new-path>"