setx /m path "%path%;C:\WebDriver\bin\" doesnt work code example Example: how to use setx path setx PATH "%PATH%;C:\Python27\;C:\Python27\Scripts\"