Skip to main content
Solved

Rename Files by adding prefix from table attribute

  • April 12, 2024
  • 1 reply
  • 50 views

vxn43
Supporter
Forum|alt.badge.img+18

I have 4 files I need to rename. To rename them I need to add the values of an attribute in a table to each of their names; please refer to the screenshot for this example:

SS000001.PNG

would be renamed 18085SS000001.PNG by adding the value from the STCLID Attribute in the table in the screenshot to the filename. 

 

Seems as a first step would be “move” the values in the STCLID attribute to the <missing> rows?

 

What is the best way to go about this?

 

Best answer by liamfez

If you need the STCLID values on the other features (features 5-8 in your example) to work with it there, you could utilize the FeatureMerger or a FeatureJoiner (using “path_filename” and “PHOTO” attributes to do the merge/join). You can use the StringConcatenator to concatenate the “PHOTO” (or “path_filename”) and “STCLID” attributes.

View original
Did this help you find an answer to your question?

1 reply

liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • Best Answer
  • April 12, 2024

If you need the STCLID values on the other features (features 5-8 in your example) to work with it there, you could utilize the FeatureMerger or a FeatureJoiner (using “path_filename” and “PHOTO” attributes to do the merge/join). You can use the StringConcatenator to concatenate the “PHOTO” (or “path_filename”) and “STCLID” attributes.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings