setx path without duplicate code example Example: how to use setx path setx PATH "%PATH%;C:\Python27\;C:\Python27\Scripts\"