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