windows 10 add new directory to path code example Example: add directory to path windows 10 setx /M PATH "%PATH%;<your-new-path>"