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