Select to view content in your preferred language

I have about 2,000 photos hylerlinked that is on a local drive. How can I change the drive of all photos without having to go to each to make the change.

3902
2
Jump to solution
02-19-2015 07:24 AM
WalterBeard
New Contributor

I have about 2,000 photos hylerlinked that is on a local drive. How can I change the drive of all photos without having to go to each to make the change.

0 Kudos
1 Solution

Accepted Solutions
OwenEarley
Frequent Contributor

If you are storing your hyperlinks in a field then you can just update the path using the Field Calculator.

  • Back up your data or use an edit session so you can undo any changes.
  • For example - if your hyperlinks stored in a field called LinkPath:
  • Open the attribute table for your data
  • Open the Field Calculator for the hyperlink field
  • Change the Parser option to Python
  • Use the python replace function in your expression to change the path:

!LinkPath!.replace('C:\\Temp\\Photos', 'H:\\Photos')

This will replace C:\Temp\Photos with H:\Photo - just change the values to match your own paths.

View solution in original post

2 Replies
TimothyKippo
Occasional Contributor

Hi Walter

I would assume python would be the best method.  How are the hyperlinks stored?

0 Kudos
OwenEarley
Frequent Contributor

If you are storing your hyperlinks in a field then you can just update the path using the Field Calculator.

  • Back up your data or use an edit session so you can undo any changes.
  • For example - if your hyperlinks stored in a field called LinkPath:
  • Open the attribute table for your data
  • Open the Field Calculator for the hyperlink field
  • Change the Parser option to Python
  • Use the python replace function in your expression to change the path:

!LinkPath!.replace('C:\\Temp\\Photos', 'H:\\Photos')

This will replace C:\Temp\Photos with H:\Photo - just change the values to match your own paths.