Rename files based on metadata

Hi. Any idea how to rename a file based on a metadata. Thx in advance.