import os os.rename(r'C:UsersRonDesktopTestProducts.txt',r'C:UsersRonDesktopTestShipped Products.txt')