if the project name was called "Bowl of fruits", instead of having
I highlighted the last folder in red to show that I want to use the name of the last folder to the filename. I thought since AllDup uses %1 and %2 as filename and file extension, maybe there is a percent variable for folders, such as %0root document folder\Bowl of fruits\Bowl of fruits V1\Default_Material_BaseColor.tif
root document folder\Bowl of fruits\Bowl of fruits V1\Default_Material_Rooughness.tif
root document folder\Bowl of fruits\Bowl of fruits V1\Default_Material_Metallic.tif
and..
root document folder\Bowl of fruits\Bowl of fruits V2\Default_material_BaseColor.tif
root document folder\Bowl of fruits\Bowl of fruits V2\Default_Material_Rooughness.tif
root document folder\Bowl of fruits\Bowl of fruits V2\Default_Material_Metallic.tif
I want to rename these files to....
root document folder\Bowl of fruits\Bowl of fruits V1\Bowl of fruits V1_BaseColor.tif
root document folder\Bowl of fruits\Bowl of fruits V1\Bowl of fruits V1_Roughness.tif
root document folder\Bowl of fruits\Bowl of fruits V1\Bowl of fruits V1_Metallic.tif
and..
root document folder\Bowl of fruits\Bowl of fruits V2\Bowl of fruits V2_BaseColor.tif
root document folder\Bowl of fruits\Bowl of fruits V2\Bowl of fruits V2_Roughness.tif
root document folder\Bowl of fruits\Bowl of fruits V2\Bowl of fruits V2_Metallic.tif