weldermartins
Honored Contributor

I managed to solve it using the code below.

thank's

if split[1]=='.COMPANYCSV':
        os.rename(files,files.replace("K3241", "COMPANY"))