3

I have a field containing the file names for photos. I need to add the folder location to the beginning of each file name. Anyone know the code for doing this in Field Calculator?

2
  • Are all of your photos in the same location, or do you need to be able to programmatically add folder location info from a number of different locations?
    – JWallace
    Nov 12, 2014 at 16:55
  • They are all in the same folder location. It should be simple, I just can't remember the correct codeing for the process.
    – Amanda
    Nov 12, 2014 at 17:00

2 Answers 2

5

Using the Python parser, you can combine text using +. For example:

"C:/this/is/a/test/" + !FileName!
4

And...if you want to use VB, you simply add an " & " between your folder location and your existing photo ID: "Your folder location" & [Existing ID] enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.