SaveAs one file into dozens of *.max files


maybe someone could help me with script or advice.

i have very simple 3dsmax2014+vray scene. and i have *.IFL file with dozens filenames

for every line in IFL-file i need to:
1. rename bitmaps in material editor from IFL ( they have fixed names if that helps )
2. SaveAs scene with the name from IFL file

i attached a picture.

please help me with a script or advice how to rename maps in material browser and rename max scene

thank you

script_rename_.jpg287.76 KB