set command permanent code example Example: how to use setx path setx PATH "%PATH%;C:\Python27\;C:\Python27\Scripts\"